getApplicationInformation method
Future method called getApplicationInformation has JApplicationInfo return type.
Implementation
Future<JApplicationInfo> getApplicationInformation() async {
JApplicationInfo applicationInfo = JApplicationInfo();
try {
final value =
await _methodChannel.invokeMethod<String>(_APPLICATION_INFO);
if (value != null) {
final val = json.decode(value);
applicationInfo = JApplicationInfo.fromMap(val);
}
return applicationInfo;
} catch (e) {
return applicationInfo;
}
}