Flow constructor

Flow({
  1. String? name,
  2. String? displayName,
  3. String? description,
  4. Iterable<TransitionRoute>? transitionRoutes,
  5. Iterable<EventHandler>? eventHandlers,
  6. NluSettings? nluSettings,
})

Implementation

factory Flow({
  $core.String? name,
  $core.String? displayName,
  $core.String? description,
  $core.Iterable<$0.TransitionRoute>? transitionRoutes,
  $core.Iterable<$0.EventHandler>? eventHandlers,
  NluSettings? nluSettings,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  if (description != null) {
    _result.description = description;
  }
  if (transitionRoutes != null) {
    _result.transitionRoutes.addAll(transitionRoutes);
  }
  if (eventHandlers != null) {
    _result.eventHandlers.addAll(eventHandlers);
  }
  if (nluSettings != null) {
    _result.nluSettings = nluSettings;
  }
  return _result;
}