whenOrNull<TResult extends Object?> method
Null safety
- {TResult? lengthLimiting(
- int? maxLength,
- MaxLengthEnforcement? maxLengthEnforcement
- TResult? filtering( )?,
- TResult? filteringAllow( )?,
- TResult? filteringDeny( )?}
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(
int? maxLength, MaxLengthEnforcement? maxLengthEnforcement)?
lengthLimiting,
TResult? Function(
String filterPattern, bool allow, String replacementString)?
filtering,
TResult? Function(String filterPattern, String replacementString)?
filteringAllow,
TResult? Function(String filterPattern, String replacementString)?
filteringDeny,
}) =>
throw _privateConstructorUsedError;