operation method

The declared operation of kind, or null when the profile does not declare one.

Implementation

ProjectOperation? operation(ProjectOperationKind kind) {
  for (final operation in operations) {
    if (operation.kind == kind) return operation;
  }
  return null;
}