EventHandler constructor

EventHandler({
  1. String? targetPage,
  2. String? targetFlow,
  3. String? event,
  4. Fulfillment? triggerFulfillment,
  5. String? name,
})

Implementation

factory EventHandler({
  $core.String? targetPage,
  $core.String? targetFlow,
  $core.String? event,
  $18.Fulfillment? triggerFulfillment,
  $core.String? name,
}) {
  final _result = create();
  if (targetPage != null) {
    _result.targetPage = targetPage;
  }
  if (targetFlow != null) {
    _result.targetFlow = targetFlow;
  }
  if (event != null) {
    _result.event = event;
  }
  if (triggerFulfillment != null) {
    _result.triggerFulfillment = triggerFulfillment;
  }
  if (name != null) {
    _result.name = name;
  }
  return _result;
}