maxLines property

  1. @override
int? get maxLines
override

Implementation

@override
int? get maxLines {
  switch (inputType) {
    case TextInputType.datetime:
    case TextInputType.emailAddress:
    case TextInputType.name:
    case TextInputType.number:
    case TextInputType.phone:
    case TextInputType.streetAddress:
    case TextInputType.text:
    case TextInputType.visiblePassword:
    case TextInputType.text:
      return 1;
    case TextInputType.multiline:
    case TextInputType.url:
    default:
      return null;
  }
}
set maxLines (int? _maxLines)
inherited

Implementation

int? maxLines;