setSource static method

Future<void> setSource(
  1. String resource,
  2. String platform,
  3. String language
)

Implementation

static Future<void> setSource(
    String resource, String platform, String language) async {
  try {
    final arguments = {
      "resource": resource,
      "platform": platform,
      "language": language
    };
    await channel.invokeMethod('setSource', arguments);
  } on PlatformException catch (p) {
    _errorCallbackHandler(null, p, null, null);
  } catch (e) {
    _errorCallbackHandler(null, null, e, null);
  }
}