PheasantBaseApp class abstract

A base Pheasant Application. This can be used instead of the createApp function to extend your application and its functionality, like by adding routers.

This base class shouldn't be used directly by the user, but can be used via the plugins API for adding functionality to your application either via extending this class or by adding extensions.

Every Pheasant Application has a build method, which builds the application and then renders it into the DOM.

Constructors

PheasantBaseApp(PheasantTemplate app, {AppState? appState})

Properties

app PheasantTemplate
The Application as a PheasantTemplate (i.e as the App getter or your Application Component)
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state AppState
The state of the application as AppState
getter/setter pair

Methods

build([String selector = '#output']) → void
Builds the pheasant application and renders it into the dom. Specify selector to choose to render to a specific component like one with an id of "out" ("#out"). Defaults to "#output".
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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