AppWrapperBase class

AppWrapperBase is a top level base class used to efficiently propagate information down the tree.

It extends InheritedWidget and provides consumers with additional data about the device the apps are running on.

Consumers will rebuild when the state of this widget changes.

@params

  • graphQLClient An instance of ISILGraphQlClient which is the blueprint of a valid GraphQL client. It provides out of the box implementation of client methods that can be overridden.
  • appName A required string that identifies your application.
  • appContexts context app running environments.
  • deviceCapabilities An instance of IDeviceCapabilities that is used to check for Device Camera and Device BiometricType (face or fingerprint).
  • eventBus Used to log events
  • shouldNotify bool used to determine whether the framework should notify widgets that inherit from this widget. This parameter is set to true by default.
Inheritance

Constructors

AppWrapperBase({required Widget child, required IGraphQlClient graphQLClient, required String appName, required List<AppContext> appContexts, required IDeviceCapabilities deviceCapabilities, dynamic eventBus, BaseContext? customContext, bool shouldNotify = true})
const

Properties

appContexts List<AppContext>
context is the app running environments
final
appName String
final
child Widget
The widget below this widget in the tree.
finalinherited
customContext BaseContext?
final
deviceCapabilities IDeviceCapabilities
final
eventBus → dynamic
final
graphQLClient → IGraphQlClient
graphQLClient is the graphql client from flutter_graphql_client package it is dynamic to avoid cyclic-dependency errors when packages cross depend on each other
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldNotify bool
final

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
updateShouldNotify(covariant InheritedWidget oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

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

Static Methods

of(BuildContext context) AppWrapperBase?