FFThenTestStep constructor

Implementation

factory FFThenTestStep({
  FFTestFinder? target,
  FFThenTestStep_FindsOneWidget? findsOneWidget,
  FFThenTestStep_FindsNothing? findsNothing,
  FFThenTestStep_FindsWidgets? findsWidgets,
  FFThenTestStep_FindsNumWidgets? findsNumWidgets,
  FFThenTestStep_CustomThenStep? custom,
  FFThenTestStep_IsEnabled? isEnabled,
  FFThenTestStep_IsDisabled? isDisabled,
  FFThenTestStep_HasState? hasState,
  FFThenTestStep_MatchesGoldenFile? matchesGoldenFile,
}) {
  final result = create();
  if (target != null) result.target = target;
  if (findsOneWidget != null) result.findsOneWidget = findsOneWidget;
  if (findsNothing != null) result.findsNothing = findsNothing;
  if (findsWidgets != null) result.findsWidgets = findsWidgets;
  if (findsNumWidgets != null) result.findsNumWidgets = findsNumWidgets;
  if (custom != null) result.custom = custom;
  if (isEnabled != null) result.isEnabled = isEnabled;
  if (isDisabled != null) result.isDisabled = isDisabled;
  if (hasState != null) result.hasState = hasState;
  if (matchesGoldenFile != null) result.matchesGoldenFile = matchesGoldenFile;
  return result;
}