# FlutterSmartfaceLicensePlatform class

An abstract class that extends PlatformInterface to define the platform-specific implementation for the Flutter Smartface plugin.

This class serves as the base for all platform-specific implementations and ensures that the correct platform interface is used.

Inheritance
  - Object
  - PlatformInterface
  - FlutterSmartfaceBasePlatform
  - FlutterSmartfaceLicensePlatform

## Constructors

FlutterSmartfaceLicensePlatform()
  Constructs a FlutterSmartfaceLicensePlatform.

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
methodChannel ↔ MethodChannel
  A MethodChannel that is used for communication between Flutter and the native platform. This field is marked as `late` and `final`, meaning it will be initialized later and cannot be reassigned. The `@visibleForTesting` annotation indicates that this field is intended to be visible only for testing purposes.
  late final inherited
name → String
  The name associated with the platform.
  final inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

apiConfigured() → Future<bool>
  Checks if the API is configured by verifying the presence of user, password, and clientIdentifier in secure storage.
defaultPermissionUI(BuildContext context, Future requestPermission(BuildContext)) → Widget
  A default UI widget for handling permission requests.
  inherited
getLicenseProducts({required String document}) → Future<Either<String, dynamic>>
  Retrieves the license products associated with a given document.
getPlatformVersion() → Future<String?>
  Retrieves the platform version from the native platform.
getSmartfaceVersion() → Future<String>
  Retrieves the Smartface version from the native platform.
getValueFromSecureStorage({required String key}) → Future<String?>
  Retrieves a value from secure storage for the given `key`.
getVersion() → Future<String>
  Retrieves the version from the native platform.
hasLicense() → Future<Either<String, dynamic>>
  Checks if a license is present on the native platform.
install({required String id}) → Future<Either<String, dynamic>>
  Installs a license on the native platform using the provided `id`.
installProduct({required Map productItem}) → Future<Either<String, dynamic>>
  Installs a product using the provided product item details.
invokeNativeMethod(String methodName, [dynamic arguments]) → Future<Either<String, dynamic>>
  Invokes a native method through the method channel and handles the response.
  inherited
licenseInstalled() → Future<bool>
  Checks if a license is installed on the native platform.
licenseLoggedIn() → Future<bool>
  Checks if the user is logged in with a license.
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
platformViewLink({dynamic onIdentify(dynamic)?, dynamic onPercentageChanged(dynamic)?, dynamic onPushing(dynamic)?, dynamic onCompleted(dynamic)?, dynamic onFailed(dynamic)?, dynamic onCountdownStarted(dynamic)?, dynamic onLiveness(dynamic)?, dynamic onFps(dynamic)?, Widget? onLoadingWidget, Widget? faceMaskOverlay, required Widget builder(Widget, FlutterSmartfacePlatformCameraController), Widget customPermissionBuilder(Future (BuildContext))?, Map<String, dynamic> creationParams = const {}, required String viewType}) → Widget
  Creates a platform view link widget with various callback functions for handling different events and optional widgets for loading and face mask overlay.
  inherited
registerCallback(String method, dynamic callback(dynamic)) → void
  Registers a callback for a specific method.
  inherited
setCredentials({required String user, required String password, required int clientIdentifier}) → Future<Either<String, dynamic>>
  Sets the credentials on the native platform using the provided `user`, `password`, and `clientIdentifier`.
setLogin(String login, String password) → Future<Either<String, dynamic>>
  Sets the login credentials on the native platform using the provided `login` and `password`.
setValueToSecureStorage({required String key, required String value}) → Future<void>
  Stores a value in secure storage for the given `key` and `value`.
toString() → String
  A string representation of this object.
  inherited

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited