normalizeFileName static method

String normalizeFileName(
  1. String name
)

Implementation

static String normalizeFileName(String name) {
  name = name.trim().replaceAll(RegExp(r'[^\w-.]+'), '_');
  return name;
}