trimLeft function

String trimLeft(
  1. String s
)

Removes whitespace from the start of a string.

print(trimLeft(' hello ')); // Outputs: 'hello '

Implementation

String trimLeft(String s) => s.trimLeft();