when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult mentionRule(
    1. MentionRule data
    ),
  2. required TResult followingRule(
    1. FollowingRule data
    ),
  3. required TResult listRule(
    1. ListRule data
    ),
  4. required TResult unknown(
    1. Map<String, dynamic> data
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(MentionRule data) mentionRule,
  required TResult Function(FollowingRule data) followingRule,
  required TResult Function(ListRule data) listRule,
  required TResult Function(Map<String, dynamic> data) unknown,
}) =>
    throw _privateConstructorUsedError;