read method

Future<String> read({
  1. required String androidResourceName,
  2. required String iosPlistKey,
  3. String? iosPlistFile,
})

Reads a string stored in the platform resource system.

On iOS, the iosPlistKey field is used. When specified, iosPlistFile specifies the name of a plist file to read the value from.

On Android androidResourceName is resolved using the resource system.

If the property can not be resolved, a exception is thrown.

Implementation

Future<String> read({
  required String androidResourceName,
  required String iosPlistKey,
  String? iosPlistFile,
}) async {
  return (await _channel.invokeMethod<String>('read', {
    'android-resource-name': androidResourceName,
    'ios-plist-key': iosPlistKey,
    'ios-plist-file': iosPlistFile,
  }))!;
}