refresh static method

Future<List<NamiCampaign>> refresh()

Asks Nami to fetch the latest active campaigns for this device @return list of active campaigns after updating.

Implementation

static Future<List<NamiCampaign>> refresh() async {
  List<dynamic> list = await channel.invokeMethod("campaigns.refresh");
  return list.map((e) => NamiCampaign.fromMap(e)).toList();
}