setBatchSize method
Implementation
@override
Future<int> setBatchSize(int batchSize) async {
final arguments = <String, dynamic>{
Arguments.batchSize: batchSize,
};
try {
final invoke = await methodChannel.invokeMethod<int>(
MethodNames.setBatchSize, arguments);
return invoke ?? Constants.errorMethod;
} catch (error) {
debugPrint(error.toString());
return Constants.errorMethod;
}
}