LightAlert constructor

LightAlert({
  1. required List<String> actionValues,
  2. String? action,
})

Creates a LightAlert object.

Implementation

LightAlert({required this.actionValues, String? action})
    : assert(action == null || Validators.isValidValue(action, actionValues),
          "$action is not a valid `action`"),
      _originalAction = action,
      _action = action;