copyWith method

TestAction copyWith({
  1. ActionType? actionType,
  2. WidgetTester? tester,
  3. Finder? finder,
  4. String? enterText,
  5. Duration? awaitDuration,
  6. Function? customAction,
  7. bool? executePumpAndSettle,
  8. Offset? dragOffset,
  9. int? pumpTime,
  10. String? actionName,
})

Implementation

TestAction copyWith({
  ActionType? actionType,
  WidgetTester? tester,
  Finder? finder,
  String? enterText,
  Duration? awaitDuration,
  Function? customAction,
  bool? executePumpAndSettle,
  Offset? dragOffset,
  int? pumpTime,
  String? actionName,
}) =>
    TestAction(
      actionType: actionType ?? this.actionType,
      executePumpAndSettle: executePumpAndSettle ?? this.executePumpAndSettle,
      awaitDuration: awaitDuration ?? this.awaitDuration,
      finder: finder ?? this.finder,
      enterText: enterText ?? this.enterText,
      tester: tester ?? this.tester,
      customAction: customAction ?? this.customAction,
      dragOffset: dragOffset ?? this.dragOffset,
      pumpTime: pumpTime ?? this.pumpTime,
      actionName: actionName ?? this.actionName,
    );