TestActions constructor

TestActions({
  1. List<TestAction>? actions,
  2. WidgetTester? tester,
})

Implementation

TestActions({List<TestAction>? actions, WidgetTester? tester}) {
  if (actions != null && actions.isNotEmpty) {
    for (var element in actions) {
      addAction(element);
    }
  } else {
    _actions = [];
  }
  _doneActions = [];
  if (tester != null) _tester = tester;
}