WerkbankAppOnlyAccessor mixin

A mixin that provides access to data in the BuildContext that is available inside a WerkbankApp.

Superclass constraints
Mixin applications

Properties

containerName → String
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

acknowledgedController(BuildContext context) → AcknowledgedController
Gets the AcknowledgedController of the current WerkbankApp.
addonByIdOf(BuildContext context, String addonId) → Addon?
Returns the Addon by the given addonId if it is active, or null if not.
inherited
addonsOf(BuildContext context) → List<Addon>
Returns a list of all active Addons.
inherited
addonSpecificationsOf(BuildContext context) → Map<String, AddonSpecification>
Get a map from Addon.ids to AddonSpecifications for all all addons that are currently used.
ensureNotNull<T extends Object>(T? value) → T
inherited
ensureReturns<T>(T function()) → T
inherited
historyOf(BuildContext context) → HistoryController
Gets the HistoryController of the current WerkbankApp.
isAddonActiveOf(BuildContext context, String addonId) → bool
Returns whether the Addon with the given addonId is active.
inherited
lastUpdatedOf(BuildContext context) → DateTime?
Gets the last updated date of the current WerkbankApp.
logoOf(BuildContext context) → Widget?
Gets the logo of the current WerkbankApp.
metadataForUseCaseOf(BuildContext context, UseCaseDescriptor useCase) → UseCaseMetadata
Gets the UseCaseMetadata of the given UseCaseDescriptor.
metadataMapOf(BuildContext context) → Map<UseCaseDescriptor, UseCaseMetadata>
Returns a map of all UseCaseDescriptors to their UseCaseMetadatas.
Gets the current NavState of the current WerkbankApp.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persistentControllerOf<T extends PersistentController>(BuildContext context) → T
Gets the PersistentController of the given type.
readNavStateOf(BuildContext context) → NavState
Reads the current NavState of the current WerkbankApp without creating a dependency.
rootDescriptorOf(BuildContext context) → RootDescriptor
Gets the RootDescriptor of the current WerkbankApp.
routerOf(BuildContext context) → WerkbankRouter
Gets the WerkbankRouter for the current WerkbankApp.
subscribeToErrors(BuildContext context, void onError(FlutterErrorDetails errorDetails)) → StreamSubscription<FlutterErrorDetails>
Subscribes to errors that are reported to FlutterError.reportError.
toString() → String
A string representation of this object.
inherited
werkbankNameOf(BuildContext context) → String
Gets the name of the current WerkbankApp.

Operators

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