initialize method

Future<bool> initialize()

Initialize and request permission to use platform services.

If this returns false then either the user has denied permission to use the platform services or the services are not available for some reason, possibly due to platform version.

Implementation

Future<bool> initialize() async {
  if (_initWorked) {
    return Future.value(_initWorked);
  }
  _initWorked = await LocalImageProviderPlatform.instance.initialize();
  return _initWorked;
}