toFlutter method

  1. @override
TextInputType toFlutter(
  1. AnyWidgetContext context
)
override

Implementation

@override
TextInputType toFlutter(AnyWidgetContext context) {
  return map(
    datetime: (_) => TextInputType.datetime,
    emailAddress: (_) => TextInputType.emailAddress,
    multiline: (_) => TextInputType.multiline,
    name: (_) => TextInputType.name,
    none: (_) => TextInputType.none,
    number: (_) => TextInputType.number,
    phone: (_) => TextInputType.phone,
    streetAddress: (_) => TextInputType.streetAddress,
    text: (_) => TextInputType.text,
    url: (_) => TextInputType.url,
    visiblePassword: (_) => TextInputType.visiblePassword,
  );
}