getWidgetCachedHeight method
Retrieves the cached height of a widget.
widgetId is the ID of the widget.
autoLayoutType is the type of the desired widget layout.
Returns a future that resolves to the cached height of the widget.
Implementation
@override
Future<double?> getWidgetCachedHeight(
int widgetId, int autoLayoutType) async {
return await methodChannel.invokeMethod<double?>(
Method.GET_WIDGET_CACHED_HEIGHT, {
'widgetId': widgetId,
Params.AUTO_LAYOUT_BEHAVIOUR_TYPE: autoLayoutType
});
}