setUp method Null safety

  1. @override
Future<T> setUp(
  1. T value

A function that will be called before each value is tested, with the value that will be tested.

This function should preserve any state needed to restore the testing environment back to its base state when tearDown is called in the Object that is returned. The returned object will then be passed to tearDown as a memento when the test is complete.


Future<T> setUp(T value) async => _currentValue = value;