getGroups static method
Fetches all groups (or labels on Android).
Implementation
static Future<List<Group>> getGroups() async {
List untypedGroups = await _channel.invokeMethod('getGroups');
// ignore: omit_local_variable_types
List<Group> groups = untypedGroups
.map((x) => Group.fromJson(Map<String, dynamic>.from(x)))
.toList();
return groups;
}