substr method
Calls the substr
function on this string.
Note that the function has different semantics than the String.substring
method for Dart strings - for instance, the start
index starts at one
and length
can be negative to return a section of the string before
start
.
Implementation
Expression<String> substr(int start, [int? length]) {
return substrExpr(
Constant(start), length != null ? Constant(length) : null);
}