import 'package:foundation_fluttify/foundation_fluttify.dart'; import 'cl_floor.dart'; import 'cl_location_coordinate_2d.dart'; // ignore_for_file: non_constant_identifier_names import 'objects.dart'; class CLLocation extends NSObject { @override final String tag__ = 'core_location_fluttify'; Future get coordinate async { final result = await kCLMethodChannel .invokeMethod('CLLocation::get_coordinate', {'__this__': this}); return CLLocationCoordinate2D()..refId = result?.refId; } Future get altitude { return kCLMethodChannel .invokeMethod('CLLocation::get_altitude', {'__this__': this}); } Future get horizontalAccuracy { return kCLMethodChannel .invokeMethod('CLLocation::get_horizontalAccuracy', {'__this__': this}); } Future get verticalAccuracy { return kCLMethodChannel .invokeMethod('CLLocation::get_verticalAccuracy', {'__this__': this}); } Future get course { return kCLMethodChannel .invokeMethod('CLLocation::get_course', {'__this__': this}); } Future get speed { return kCLMethodChannel .invokeMethod('CLLocation::get_speed', {'__this__': this}); } Future get floor async { final result = await kCLMethodChannel .invokeMethod('CLLocation::get_floor', {'__this__': this}); return CLFloor()..refId = result?.refId; } }