EliteORMListState<T extends EliteORMList> class
abstract
Derive your state class from EliteORMListState instead of State. It will
provide the same functionality and a default implementation of the build
method that will display the contents of the bloc
class as a list of
cards that can be tapped in order to edit them.
Constructors
Properties
-
bloc
→ Bloc<
Entity> -
Provide the bloc for your database entities.
no setter
- context → BuildContext
-
The location in the tree where this widget builds.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- loading → String
-
Return a string to indicate to the user that the data is loading.
no setter
- mounted → bool
-
Whether this State object is currently in a tree.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → EliteORMEditorStyle
-
Return a style object for use with the layout of the Card list.
no setter
- title → String
-
Return the title of the screen.
no setter
- widget → T
-
The current configuration.
no setterinherited
Methods
-
activate(
) → void -
Called when this object is reinserted into the tree after having been
removed via deactivate.
inherited
-
build(
BuildContext context) → Widget -
The default implementation uses a simple Scaffold. Override this in your
child class if this implementation does not suit your needs.
override
-
deactivate(
) → void -
Called when this object is removed from the tree.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
didChangeDependencies(
) → void -
Called when a dependency of this State object changes.
inherited
-
didUpdateWidget(
covariant T oldWidget) → void -
Called whenever the widget configuration changes.
inherited
-
dispose(
) → void -
Called when this object is removed from the tree permanently.
inherited
-
getEditor(
[Entity? entity]) → Widget - Return a widget that will create an "editing" screen when the individual card is tapped.
-
getEntitySubtitle(
Entity entity) → String? - Return a Card subtitle that can be extracted from the database entity.
-
getEntityTitle(
Entity entity) → String - Return a Card title that can be extracted from the database entity.
-
initState(
) → void -
Called when this object is inserted into the tree.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reassemble(
) → void -
Called whenever the application is reassembled during debugging, for
example during hot reload.
inherited
-
renderAppBar(
) → PreferredSizeWidget - By default, return an AppBar widget with a text title.
-
renderBottomIcons(
) → Row? - Override this in your child class and return a Row containing a list of widgets to show a bottom navigation bar.
- Override this in your child class if this implementation does not suit your needs.
-
renderEntities(
AsyncSnapshot< List< snapshot) → WidgetEntity> > - Renders the list of entities or a "loading" circular progress indicator. You can override this if the default implementation does not suit your needs.
-
renderEntity(
Entity entity) → Widget - Render a widget to display information about the database entity. You can override this if the default implementation does not suit your needs.
-
setState(
VoidCallback fn) → void -
Notify the framework that the internal state of this object has changed.
inherited
-
sorter(
Entity a, Entity b) → int - Implement a sorter for use with List.sort() for two database entities. This will determine the order in which the entities are listed on the screen.
-
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
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited