currentPosition method

Future<Map<String, dynamic>> currentPosition(
  1. String tag
)

Implementation

Future<Map<String, dynamic>> currentPosition(String tag) async {
  final repository = UserRepository();
  final data = await repository.currentPosition(tag);

  Position.updatePrefs(Position.fromJson(data));
  return data;
}