trim method

String trim(
  1. String str
)

Implementation

String trim(String str) {
  return str.replaceAll(RegExp(r'^\s+|\s+$'), '');
}