maxLen static method

bool maxLen(
  1. String string,
  2. int max
)

Check this string max length, if satisfied condition then return true

Implementation

static bool maxLen(String string, int max) => string.length <= max;