ComponentModelTester<CM extends ComponentModel<C, M>, C extends ElementaryComponent<IComponentModel>, M extends ElementaryModel> class abstract

Controls ComponentModel lifecycle during tests (Jaspr analogue of Flutter Elementary’s WMTester from package elementary_test).

Implementers

Constructors

ComponentModelTester()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate() → void
Emulates Element.activate for the model.
deactivate() → void
Emulates Element.deactivate for the model.
didChangeDependencies() → void
Emulates Element.didChangeDependencies for the model.
handleError(Object error) → void
Emulates ComponentModel.onErrorHandle via ComponentModel.handleTestError.
init({C? initComponent}) → void
Attaches BuildContext, optional component, then ComponentModel.initComponentModel and ComponentModel.didChangeDependencies (same order as ElementaryElement.mount).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unmount() → void
Emulates permanent removal: ComponentModel.dispose and clears test element/component.
update(C newComponent) → void
Emulates a new ElementaryComponent configuration for the same model.

Operators

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