Flow constructor

Flow({
  1. FlowType? type,
  2. ObjectDetails? details,
  3. FlowState? state,
  4. Iterable<TriggerAction>? triggerActions,
})

Implementation

factory Flow({
  FlowType? type,
  $8.ObjectDetails? details,
  FlowState? state,
  $core.Iterable<TriggerAction>? triggerActions,
}) {
  final $result = create();
  if (type != null) {
    $result.type = type;
  }
  if (details != null) {
    $result.details = details;
  }
  if (state != null) {
    $result.state = state;
  }
  if (triggerActions != null) {
    $result.triggerActions.addAll(triggerActions);
  }
  return $result;
}