getStreams method

List<StreamInformation>? getStreams()

Returns all streams

Implementation

List<StreamInformation>? getStreams() {
  List<StreamInformation> list =
      List<StreamInformation>.empty(growable: true);
  var streamList;

  if (_allProperties == null) {
    streamList = List.empty(growable: true);
  } else {
    streamList = _allProperties!["streams"];
  }

  if (streamList != null) {
    streamList.forEach((element) {
      list.add(new StreamInformation(element));
    });
  }

  return list;
}