isOptedOut method
Checks whether Batch has been opted out from or not.
Returns a promise that resolves to a boolean value indicating whether Batch has been opted out from or not.
Implementation
Future<bool> isOptedOut() async {
bool isOptedOut = await _channel.invokeMethod('isOptedOut');
return isOptedOut;
}