getAllLabels method

  1. @override
Future<List<Catalog>> getAllLabels()
override

Implementation

@override
Future<List<Catalog>> getAllLabels() async {
  final result = await methodChannel.invokeListMethod("getAllLabels");

  List<Catalog> catalog = [];
  if (result != null) {
    for (var item in result) {
      catalog.add(Catalog.fromRawJson(item));
    }
  }
  return catalog;
}