RichAction.openUrl constructor

  1. @FreezedUnionValue.new('open_url')
const RichAction.openUrl({
  1. required String url,
  2. required String label,
  3. @JsonKey.new(name: 'open_in_app') @Default.new(false) bool openInApp,
  4. @Default.new('primary') String style,
})

Action to open a URL in browser or in-app

Implementation

@FreezedUnionValue('open_url')
const factory RichAction.openUrl({
  required String url,
  required String label,
  @JsonKey(name: 'open_in_app') @Default(false) bool openInApp,
  @Default('primary') String style,
}) = OpenUrlAction;