init static method

Future<StreetViewController> init(
  1. int id,
  2. StreetViewBaseState streetViewState
)

Initialize control of a FlutterGoogleStreetView with id.

Mainly for internal use when instantiating a StreetViewController passed in FlutterGoogleStreetView.onStreetViewCreated callback.

Implementation

static Future<StreetViewController> init(
    int id, StreetViewBaseState streetViewState) async {
  final dynamic initSetting = await _streetViewFlutterPlatform.init(id);
  return StreetViewController._(streetViewState,
      viewId: id, initSetting: initSetting);
}