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 ofIGraphQlClient
which is the ' 'blueprint of a valid GraphQL client.appContexts
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, required List<
AppContext> appContexts, dynamic eventBus, BaseContext? baseContext}) -
const
Properties
-
appContexts
→ List<
AppContext> -
context is the environment which the app is running on. In app can run
on multiple contexts, the intuition why context is a list.
example of contexts;
final
- appName → String
-
appName the name of the app
final
- baseContext → BaseContext?
-
final
- child → Widget
-
child the widget that will be wrapped by this wrapper
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
- 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
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