refresh method

  1. @override
Future refresh()
override

Requests updated information from the Reddit API and updates the current object properties.

Implementation

@override
Future<dynamic> refresh() async {
  final refreshed = await populate();
  setData(this, refreshed.data);
  return this;
}