splits method

Implementation

@override
Future<List<SplitView>> splits() async {
  List<Map> callResult = (await methodChannel
          .invokeListMethod<Map<dynamic, dynamic>>('splits') ??
      []);

  List<SplitView> splits = [];
  for (var element in callResult) {
    SplitView? splitView = SplitView.fromEntry(element);
    if (splitView != null) {
      splits.add(splitView);
    }
  }

  return Future.value(splits);
}