WidgetMockFactory class
Full documentation: https://www.ezflap.io/testing/mock/mock.html#hosted-widgets
Helps with mocking a hosted ezFlap widget.
Constructors
- WidgetMockFactory({Widget funcWidgetFactory()?, MockWidgetStateBase funcCreateMockWidgetState()?})
Properties
- funcCreateMockWidgetState → (MockWidgetStateBase Function()?)
-
Returns a custom class that:
final
- funcWidgetFactory ↔ Widget Function()
-
Returns the native Flutter widget to instantiate instead of the ezFlap
widget that is being mocked.
When not provided - an empty Container will be returned.
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
Methods
-
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