initialize static method Null safety

Future initialize(
  1. PayooVnSettings settings
)

Need to call this method before starting using Payoo's features. This method could be called at initialize state of application or a screen that uses Payoo's features. It's ok to be called multiple times.

Implementation

static Future<dynamic> initialize(PayooVnSettings settings) async {
  var settingsMap = settings.toMap();
  debugPrint('PayooVnPlugin.initialize: $settingsMap');
  return await _channel.invokeMethod('initialize', settingsMap);
}