FlutterConsentFlow class
A utility class for handling regulatory frameworks and geolocation permissions.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
checkPermissions(
) → Future< LocationPermission> - Checks the location permission.
-
getRegulatoryFrameworkByCoordinates(
{VoidCallback? ifFailed, bool useGeocoderIfFails = false}) → Future< RegulatoryFramework?> - Gets the regulatory framework based on coordinates.
-
getRegulatoryFrameworkByIP(
{required String apiKey, String? mockIP}) → Future< RegulatoryFramework?> - Gets the regulatory framework based on IP address.
-
initialize(
{String? httpReferer, String? userAgent, bool enableLogs = true}) → void - Initializes the Flutter Consent Flow library.
-
requestPermission(
) → Future< LocationPermission> - Requests location permission.