TextInputFormatter class Null safety

Implementers
Annotations
  • @freezed

Constructors

TextInputFormatter.filtering(String filterPattern, {required bool allow, @Default('') String replacementString})
const
factory
TextInputFormatter.filteringAllow(String filterPattern, {@Default('') String replacementString})
const
factory
TextInputFormatter.filteringDeny(String filterPattern, {@Default('') String replacementString})
const
factory
TextInputFormatter.fromJson(Map<String, Object?> json)
factory
TextInputFormatter.lengthLimiting(int? maxLength, {MaxLengthEnforcement? maxLengthEnforcement})
const
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<TResult extends Object?>({required TResult lengthLimiting(LengthLimitingTextInputFormatter value), required TResult filtering(FilteringTextInputFormatter value), required TResult filteringAllow(FilteringAllowTextInputFormatter value), required TResult filteringDeny(FilteringDenyTextInputFormatter value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? lengthLimiting(LengthLimitingTextInputFormatter value)?, TResult? filtering(FilteringTextInputFormatter value)?, TResult? filteringAllow(FilteringAllowTextInputFormatter value)?, TResult? filteringDeny(FilteringDenyTextInputFormatter value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult lengthLimiting(LengthLimitingTextInputFormatter value)?, TResult filtering(FilteringTextInputFormatter value)?, TResult filteringAllow(FilteringAllowTextInputFormatter value)?, TResult filteringDeny(FilteringDenyTextInputFormatter value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult lengthLimiting(int? maxLength, MaxLengthEnforcement? maxLengthEnforcement)?, TResult filtering(String filterPattern, bool allow, String replacementString)?, TResult filteringAllow(String filterPattern, String replacementString)?, TResult filteringDeny(String filterPattern, String replacementString)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult lengthLimiting(int? maxLength, MaxLengthEnforcement? maxLengthEnforcement), required TResult filtering(String filterPattern, bool allow, String replacementString), required TResult filteringAllow(String filterPattern, String replacementString), required TResult filteringDeny(String filterPattern, String replacementString)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? lengthLimiting(int? maxLength, MaxLengthEnforcement? maxLengthEnforcement)?, TResult? filtering(String filterPattern, bool allow, String replacementString)?, TResult? filteringAllow(String filterPattern, String replacementString)?, TResult? filteringDeny(String filterPattern, String replacementString)?}) → TResult?
@optionalTypeArgs, inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited