getCameraPositionList method

  1. @override
Future<List<CameraPosition>> getCameraPositionList()
override

Implementation

@override
Future<List<CameraPosition>> getCameraPositionList() async {
  final methodName = EyedidMethodName.getCameraPositionList.name;
  try {
    List<Map<dynamic, dynamic>>? camerapositionMapList =
        await methodChannel.invokeListMethod(methodName);
    if (camerapositionMapList != null) {
      final list = _generateCameraPositionListWithList(camerapositionMapList);
      return list;
    }
  } catch (e) {
    if (kDebugMode) {
      print('Error fetching camera position list: $e');
    }
  }

  return [];
}