WhitelistingTextInputFormatter constructor Null safety

  1. @Deprecated('Use FilteringTextInputFormatter.allow instead. ' 'This feature was deprecated after v1.20.0-1.0.pre.')
WhitelistingTextInputFormatter(
  1. Pattern whitelistedPattern
)

Old name for FilteringTextInputFormatter.allow.

Implementation

@Deprecated(
  'Use FilteringTextInputFormatter.allow instead. '
  'This feature was deprecated after v1.20.0-1.0.pre.',
)
WhitelistingTextInputFormatter(Pattern whitelistedPattern)
  : assert(whitelistedPattern != null),
    super.allow(whitelistedPattern);