NyPageTestMixin mixin

Mixin for testing NyState and NyPage widgets.

Add this mixin to your test class for additional testing utilities.

Example:

class HomePageTest with NyPageTestMixin {
  void runTests() {
    // Use mixin methods
  }
}

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
verifyInitCalled(WidgetTester tester, Widget page, {Duration timeout = const Duration(seconds: 5)}) Future<void>
Verify that the init method is called.
verifyLoadingState(WidgetTester tester, Widget page) Future<void>
Verify loading state is shown during init.

Operators

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