getParameters method Null safety

Future<Map<String, String>> getParameters(
  1. String keys
)

(UNTESTED)

Implementation

Future<Map<String, String>> getParameters(String keys) async {
  // What is the format of keys?
  return Map.fromEntries(
      (await _channel.invokeMethod<String>('getParameters', [keys]))!
          .split(';')
          .map((s) => s.split('='))
          .map((pair) => MapEntry(pair[0], pair[1])));
}