getStepWithIdentifier method

  1. @override
RPStep? getStepWithIdentifier(
  1. String identifier
)
override

Returns the step that matches the specified identifier. Returns null if there is no step with the identifier.

Implementation

@override
RPStep? getStepWithIdentifier(String identifier) {
  for (var step in steps) {
    if (identifier == step.identifier) return step;
  }
  print("Problem: Task Steps out of index");
  return null;
}