PheasantComponent class abstract
Base component for creating a custom component
- Inheritance
-
- Object
- PheasantTemplate
- PheasantComponent
Constructors
Properties
-
attributes
↔ Map<
String, AttrFunc> -
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
- template ↔ String?
-
The
template
variable, which forms the html text body to be rendered.getter/setter pairinherited
Methods
-
del(
) → void -
Function used to declare the final state of a component.
This function is called at the end of the component's life cycle, either when removed from the DOM or navigating to another page
override
-
fetchState(
) → dynamic -
Fetches any parsed data from the previous component/page route as either a List or a Map.
inherited
-
freezeState(
[ElementState? state]) → void -
Freeze the state of the component
inherited
-
init(
) → void -
Function used to declare the initial state/case of a component.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh(
) → void -
Refresh the given page on the browser
inherited
-
reloadState(
[ElementState? state]) → void -
Reloads the state of the component
inherited
-
render(
String temp, [TemplateState? state]) → Element -
The
render
function.override -
renderComponent(
[TemplateState? state]) → Element -
toString(
) → String -
A string representation of this object.
inherited
-
unfreezeState(
[ElementState? state]) → void -
Unfreeze the state of the component
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited