isArray static method

bool isArray(
  1. String type
)

Implementation

static bool isArray(String type) {
  return type.lastIndexOf(']') == type.length - 1;
}