widgets property
UnmodifiableMapView<String, LocalWidgetBuilder>
widgets
The widgets defined by this LocalWidgetLibrary.
The returned map is an immutable view of the map provided to the constructor.
They keys are the unqualified widget names, and the values are the corresponding
LocalWidgetBuilder
s.
The map never changes during the lifetime of the LocalWidgetLibrary, but a new instance of an UnmodifiableMapView is returned each time this getter is used.
See also:
- createCoreWidgets, a function that creates a Map of local widgets.
Implementation
UnmodifiableMapView<String, LocalWidgetBuilder> get widgets {
return UnmodifiableMapView<String, LocalWidgetBuilder>(_widgets);
}