initialize method
Implementation
Future<void> initialize(Map<String, dynamic> request, Function(dynamic) error) async {
try {
WidgetsFlutterBinding.ensureInitialized();
await _api.initialize(json.encode(request));
} catch (e) {
error.call(e);
}
}