trimLeft method Null safety

String trimLeft()

The string without any leading whitespace.

As trim, but only removes leading whitespace.

final string = ' Dart '.trimLeft();
print(string); // 'Dart '

Implementation

String trimLeft();