AppWrapper class
AppWrapper Is a top level Class used to wrap your application.
@params
child
the widget that will be wrapped by this wrapperappName
A required string that identifies your applicationgraphQLClient
An instance of IGraphQlClient which is the ' 'blueprint of a valid GraphQL client.appConfig
context app running environments.eventBus
Used to log events
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AppWrapper
Constructors
- AppWrapper({required Widget child, required String appName, required IGraphQlClient graphQLClient, IGraphQlClient? communitiesClient, required AppConfig appConfig, AuthServerAPIClient? authServerAPIClient, dynamic eventBus, BaseContext? baseContext, String? mediaServerUrl, ICustomGraphQlClient? iCustomGraphQlClient})
-
const
Properties
- appConfig → AppConfig
-
Represents the configuration of the app, including its variant and environment.
appConfig specifies the app's running environment and variant configuration.
This encapsulates different app
variants
(e.g., BEWELL, MYCAREHUB) and their respective environments (e.g.,prod
,test
,demo
,e2e
).final - appName → String
-
appName the name of the app
final
- authServerAPIClient → AuthServerAPIClient?
-
communitiesClient is the client used to make authentication call with authServer
final
- baseContext → BaseContext?
-
final
- child → Widget
-
child the widget that will be wrapped by this wrapper
final
- communitiesClient → IGraphQlClient?
-
communitiesClient a copy of graphQLClient used to make communities related API calls
final
- eventBus → dynamic
-
Used to send events to the backend
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
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → AppWrapperState -
Creates the mutable state for this widget at a given location in the tree.
override
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited