hasOptedOutTracking method Null safety

Future<bool?> hasOptedOutTracking()

Will return true if the user has opted out from tracking. return true if user has opted out from tracking. Defaults to false.

Implementation

Future<bool?> hasOptedOutTracking() async {
  return await _channel.invokeMethod<bool>('hasOptedOutTracking');
}