isCapitalised static method

bool isCapitalised(
  1. String value
)

Checks whether is capitalised

Implementation

static bool isCapitalised(String value)
{
  if (value.isNotEmpty) {
    return value[0].toUpperCase() == value[0];
  }
  else {
    return false;
  }
}