mapOrNull<TResult extends Object?> method

  1. @override
TResult? mapOrNull<TResult extends Object?>({
  1. TResult active(
    1. ActiveActivityUpdate value
    )?,
  2. TResult ended(
    1. EndedActivityUpdate value
    )?,
  3. TResult stale(
    1. StaleActivityUpdate value
    )?,
  4. TResult unknown(
    1. UnknownActivityUpdate value
    )?,
})
override

Implementation

@override
TResult? mapOrNull<TResult extends Object?>({
  TResult Function(ActiveActivityUpdate value)? active,
  TResult Function(EndedActivityUpdate value)? ended,
  TResult Function(StaleActivityUpdate value)? stale,
  TResult Function(UnknownActivityUpdate value)? unknown,
}) {
  return unknown?.call(this);
}