hasSize property

bool get hasSize

Whether the SelectionContainer has undergone layout and has a size.

See also:

Implementation

bool get hasSize {
  assert(
  _selectionContainerContext?.findRenderObject() != null,
  'The _selectionContainerContext must have a renderObject, such as after the first build has completed.',
  );
  final RenderBox box = _selectionContainerContext!.findRenderObject()! as RenderBox;
  return box.hasSize;
}