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 IGraphQlClient 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.
  • appConfig appConfig 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 AppConfig appConfig, required IDeviceCapabilities deviceCapabilities, ICustomGraphQlClient? iCustomGraphQlClient, IGraphQlClient? communitiesClient, AuthServerAPIClient? authServerAPIClient, dynamic eventBus, BaseContext? customContext, String? mediaServerUrl, bool shouldNotify = true})
const

Properties

appConfig AppConfig
appConfig specifies the app's running environment and variant configuration as a singular, unified context.
final
appName String
final
authServerAPIClient AuthServerAPIClient?
communitiesClient is the client used to make authentication call with authServer
final
child Widget
The widget below this widget in the tree.
finalinherited
communitiesClient IGraphQlClient?
communitiesClient a copy of graphQLClient used to make communities related API calls
final
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
iCustomGraphQlClient ICustomGraphQlClient?
iCustomGraphQlClient is a custom graphql client from flutter_graphql_client package
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mediaServerUrl String?
final
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?