setLocationShared method

  1. @override
Future setLocationShared(
  1. bool enable
)
override

Implementation

@override
Future setLocationShared(bool enable) async {
  final hasPermission = await NUIPermissionUtil.hasLocationPermission();
  if(hasPermission) {
    OneSignal.Location.setShared(enable);
  }
}