left static method

String left(
  1. String value,
  2. int fromLeft
)

Returns the first fromLeft characters from value If fromLeft is longer than value then an RangeError is thrown.

Implementation

static String left(String value, int fromLeft) {
  return value.substring(0, fromLeft);
}