trim method

String trim(
  1. String contents,
  2. String fileExtension
)

Implementation

String trim(String contents, String fileExtension) {
  fileExtension = fileExtension.toLowerCase();

  for (var handler in _handlers) {
    if (handler.types.contains(fileExtension)) {
      return handler.trim(contents);
    }
  }

  return contents;
}