getLocation method

  1. @override
Future<StreetViewPanoramaLocation?> getLocation(
  1. int viewId
)
override

Return position of current panorama and information of near panoramas

Implementation

@override
Future<StreetViewPanoramaLocation?> getLocation(int viewId) async {
  final tmp = StreetViewPanoramaLocation.fromMap(
      await channel(viewId)!.invokeMethod("streetView#getLocation"));
  return tmp.isNull() ? null : tmp;
}