getAppReloadConfig method
Get the reload configuration for a customer.
Implementation
@override
Future<UserReloadConfiguration> getAppReloadConfig(
{required String customerId}) async {
try {
final result = await methodChannel.invokeMethod(
'getAppReloadConfig',
{'customerId': customerId},
);
if (result != null) {
final userReloadConfigurationMap = Map<String, dynamic>.from(result);
final userReloadConfiguration =
UserReloadConfiguration.fromMap(userReloadConfigurationMap);
return userReloadConfiguration;
} else {
throw PlatformException(
code: 'NULL_RESULT',
message: 'getAppReloadConfig returned null',
);
}
} on PlatformException {
rethrow;
}
}