parse static method

Map<String, String> parse(
  1. String stringsFile
)

Implementation

static Map<String, String> parse(String stringsFile) => Map.fromEntries(
      RegExp(r'"((?:\\"|[^"])*)"\s?=\s?"((?:\\"|[^"])*)"\s?;')
          .allMatches(stringsFile)
          .map(
            (match) => MapEntry(match.group(1)!, match.group(2)!),
          ),
    );