replaceExtension function Null safety

Map<String, List<String>> replaceExtension(
  1. String from,
  2. String to
)

Implementation

Map<String, List<String>> replaceExtension(String from, String to) => {
      from: [to]
    };