getWidgetDescription method
Return the description of the widget instance at the given location.
If the location does not have a support widget, an error of type
FLUTTER_GET_WIDGET_DESCRIPTION_NO_WIDGET
will be generated.
If a change to a file happens while widget descriptions are computed, an
error of type FLUTTER_GET_WIDGET_DESCRIPTION_CONTENT_MODIFIED
will be
generated.
Implementation
@experimental
Future<WidgetDescriptionResult> getWidgetDescription(
String? file, int? offset) {
final Map m = {'file': file, 'offset': offset};
return _call('flutter.getWidgetDescription', m)
.then(WidgetDescriptionResult.parse);
}