initialize method
Authenticates this client as belonging to your application. This must be called before your application can use the Parse library.
The recommended way is to put a call to
FlutterParse.initialize in your main
's method:
void main() async {
await FlutterParse.initialize(
server: 'YOUR_PARSE_SERVER_URL',
applicationId: 'YOUR_PARSE_APPLICATION_ID',
clientKey: 'YOUR_PARSE_CLIENT_KEY');
runApp(MyApp());
}
Implementation
static Future<void> initialize(
{@required String server,
@required String applicationId,
@required String clientKey}) async {
dynamic params = <String, String>{
'server': server,
'applicationId': applicationId,
'clientKey': clientKey
};
await _channel.invokeMethod('initialize', params);
}