stringNotBlank static method

String? stringNotBlank(
  1. String? string, {
  2. String msg = 'O campo deve ser preenchido.',
})

Implementation

static String? stringNotBlank(
  String? string, {
  String msg = 'O campo deve ser preenchido.',
}) =>
    string != null && string.trim().isNotEmpty ? null : msg;