init static method

Future<StreetViewController> init(
  1. int id,
  2. _StreetViewState _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, _StreetViewState _streetViewState) async {
  final dynamic initSetting = await _streetViewFlutterPlatform.init(id);
  return StreetViewController._(_streetViewState,
      viewId: id, initSetting: initSetting);
}