busStationList property

Future<List<BusStationItem>> busStationList

Implementation

Future<List<BusStationItem>> get busStationList {
  return platform(
    android: (pool) async {
      return _androidModel
          .getBusStations()
          .asStream()
          .asyncExpand((it) => Stream.fromIterable(it))
          .map((it) => BusStationItem.android(it))
          .toList();
    },
    ios: (pool) async {
      return _iosModel
          .get_busstops()
          .asStream()
          .asyncExpand((it) => Stream.fromIterable(it))
          .map((it) => BusStationItem.ios(it))
          .toList();
    },
  );
}