10 lines
375 B
Dart
10 lines
375 B
Dart
import 'package:flutter/foundation.dart';
|
|
|
|
/// Android requires explicit privacy consent before collecting device
|
|
/// identifiers. iOS follows its existing startup flow instead.
|
|
bool requiresAndroidPrivacyConsent({
|
|
required bool isWeb,
|
|
required TargetPlatform platform,
|
|
required bool privacyAgreed,
|
|
}) => !isWeb && platform == TargetPlatform.android && !privacyAgreed;
|