size property

Size size

Returns the size of the attached widget's RenderObject, in logical units.


Size get size {
      context != null,
      "Tried to get the size of a focus node that didn't have its context set yet.\n"
      'The context needs to be set before trying to evaluate traversal policies. This '
      'is typically done with the attach method.');
  return context.findRenderObject().semanticBounds.size;