FlutterGoogleStreetViewPlugin.init constructor
FlutterGoogleStreetViewPlugin.init(
- Map<String, dynamic> arg
)
Implementation
factory FlutterGoogleStreetViewPlugin.init(Map<String, dynamic> arg) =>
_lockMap.let((it) {
FlutterGoogleStreetViewPlugin? plugin;
it.forEach((viewId, inUse) {
if (!inUse && plugin == null) {
plugin = _plugins[viewId]!.also((it) {
it._setup(arg, true);
it.debug("reuse plugin viewId:${it.viewId}");
});
}
});
plugin ??= FlutterGoogleStreetViewPlugin(arg);
_lockMap[plugin!.viewId] = true;
return plugin;
});