isValidName static method

bool isValidName(
  1. String name
)

Returns true if the length of name is between 1 and 32 characters (inclusive).

Implementation

static bool isValidName(String name) => name.isNotEmpty && name.length <= 32;