Feature class abstract

Constructors

Feature()

Properties

configDeserializer FeatureConfigDeserializer?
The deserializer for the feature configuration.
no setter
hashCode int
The hash code for this object.
no setterinherited
localizationsDelegates List<LocalizationsDelegate>
The localizations delegates that are associated with this feature.
no setter
name String
The name that uniquely identifies this feature.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
services FeatureServices
The services that are associated with this feature. This includes BLoCs and other services that are required by the feature.
final

Methods

anchors(BuildContext? context) List<FeatureAnchor>
The anchors that present the feature's UI for a specific UI hook. It should be noted some anchors may be retrieved before a BuildContext is available, in which case the context parameter will be null. In such cases, the anchor will defer the creation of the anchor UI via a Builder - refer to the documentation of the specific FeatureAnchor documentation for more information.
dispose() → void
Disposes of the feature. This method is called when the feature registry is disposed and should not be invoked directly.
initialize(FeatureConfig? config, Map<String, Feature> registeredFeatures) Future<void>
Callback to initialize the Feature. This method is called when the feature is registered and should not be invoked directly. It should also be noted that the registeredFeatures map is a map of all the features that have been registered with the feature registry up to the point when this feature is registered.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scope(BuildContext context, {Key? key, required Widget child}) Widget
Returns a widget that once inserted into the tree will provide the feature to all the children of the widget. The widget from the scope method must be the parent of any FeatureContainer within which this feature's UI will be surfaced. The same applies even if the feature service required is not UI related.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited