Flow constructor
Flow({
- String? name,
- String? displayName,
- String? description,
- Iterable<
TransitionRoute> ? transitionRoutes, - Iterable<
EventHandler> ? eventHandlers, - 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;
}