getLocations method

  1. @override
Future<List<LocationPoint>> getLocations({
  1. int? limit,
})
override

Implementation

@override
Future<List<LocationPoint>> getLocations({int? limit}) async {
  final List<dynamic>? result = await methodChannel.invokeMethod('getLocations', {'limit': limit});
  if (result == null) return [];
  return result.map((e) => LocationPoint.fromJson(Map<String, dynamic>.from(e))).toList();
}