getFollowing method

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

Implementation

Future<List<Following>> getFollowing(
  String account, {
  String? start,
  String? type,
  int? limit,
}) async {
  final bodyJson = await _fetchPostData(
    method: 'condenser_api.get_following',
    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>)
  ];
}