getChinaLanguage static method

Future<bool> getChinaLanguage()

Implementation

static Future<bool> getChinaLanguage() async {
  try {
    // 使用timezone包获取标准时区标识符
    const MethodChannel channel = MethodChannel('te_general_plugin');
    final result = await channel.invokeMethod('getcnLang');
    return result;
  } catch (e) {
    return false;
  }
}