hasSize property
Whether the SelectionContainer has undergone layout and has a size.
See also:
- RenderBox.hasSize, which is used internally by this method.
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;
}