substring method

FunctionExpression substring(
  1. Object position, [
  2. Object? length
])

The part of this string that starts at position (0-based) and has length characters, or runs to the end without length.

Implementation

FunctionExpression substring(Object position, [Object? length]) =>
    _function('substring', <Object?>[position, ?length]);