getAll method

  1. @override
Future<PackageInfoData> getAll({
  1. String? baseUrl,
})
override

Returns a map with the following keys : appName,packageName,version,buildNumber

Implementation

@override
Future<PackageInfoData> getAll({String? baseUrl}) async {
  final map = await _channel.invokeMapMethod<String, dynamic>('getAll');
  return PackageInfoData(
    appName: map!['appName'] ?? '',
    packageName: map['packageName'] ?? '',
    version: map['version'] ?? '',
    buildNumber: map['buildNumber'] ?? '',
    buildSignature: map['buildSignature'] ?? '',
    installerStore: map['installerStore'] as String?,
  );
}