getFollowers method

Future<List<Following>> getFollowers(
  1. String account, {
  2. String? start,
  3. String? type,
  4. int? limit,
})

Implementation

Future<List<Following>> getFollowers(
  String account, {
  String? start,
  String? type,
  int? limit,
}) async {
  final bodyJson = await _fetchPostData(
    method: 'condenser_api.get_followers',
    params: [account, start, type, limit],
  );

  final list = bodyJson['result'] as List<dynamic>;
  return [
    for (final f in list) Following.fromJson(f as Map<String, dynamic>)
  ];
}