WidgetUtil class
Widget Util.
Constructors
Properties
- hashCode → int
- 
  The hash code for this object.
  no setterinherited
- runtimeType → Type
- 
  A representation of the runtime type of the object.
  no setterinherited
Methods
- 
  asyncPrepare(BuildContext context, bool isOnce, ValueChanged< Rect> onCallBack) → void
- Widget rendering listener. Widget渲染监听. context: Widget context. isOnce: true,Continuous monitoring false,Listen only once. onCallBack: Widget Rect CallBack.
- 
  asyncPrepares(bool isOnce, ValueChanged< Rect?> ? onCallBack) → void
- Widget渲染监听.
- 
  noSuchMethod(Invocation invocation) → dynamic 
- 
  Invoked when a nonexistent method or property is accessed.
  inherited
- 
  toString() → String 
- 
  A string representation of this object.
  inherited
Operators
- 
  operator ==(Object other) → bool 
- 
  The equality operator.
  inherited
Static Methods
- 
  getImageWH({Image? image, String? url, String? localUrl, String? package}) → Future< Rect> 
- get image width height,load error return Rect.zero.(unit px) 获取图片宽高,加载错误情况返回 Rect.zero.(单位 px) image url network local url , package
- 
  getImageWHE({Image? image, required String url, required String localUrl, required String package}) → Future< Rect> 
- get image width height, load error throw exception.(unit px) 获取图片宽高,加载错误会抛出异常.(单位 px) image url network local url (full path/全路径,example:"assets/images/ali_connors.png",""assets/images/3.0x/ali_connors.png"" ); package
- 
  getWidgetBounds(BuildContext context) → Rect 
- get Widget Bounds (width, height, left, top, right, bottom and so on).Widgets must be rendered completely. 获取widget Rect
- 
  getWidgetLocalToGlobal(BuildContext context) → Offset 
- Get the coordinates of the widget on the screen.Widgets must be rendered completely. 获取widget在屏幕上的坐标,widget必须渲染完成