2.1.1.3.2 Initialize
Overview
Before using VerifySpeed's verification features, you need to initialize the Package with client key, then get available verification methods.
Get started
- Setup Requirements: Follow the basic setup instructions.
Import VerifySpeed
dart
import 'package:flutter_verifyspeed/flutter_verifyspeed.dart';
Initializing VerifySpeed
To start using VerifySpeed, set your client key:
dart
// Set your client key
VerifySpeed.setClientKey("YOUR_CLIENT_KEY")
Get available verification methods
After setting your client key, you can get available verification methods. The initialize()
method returns a Iterable<MethodModel>
where each MethodModel
contains:
methodName
: The identifier used for verificationdisplayName
: A human-readable name for the method
dart
// Get available verification methods
final methods = await VerifySpeed.instance.initialize();