getStreams method

List<StreamInformation> getStreams()

Returns all streams found as a list.

Implementation

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

  dynamic createStreamInformation(Map<dynamic, dynamic> streamProperties) =>
      list.add(new StreamInformation(streamProperties));

  this._allProperties?["streams"]?.forEach((Object? stream) {
    createStreamInformation(stream as Map<dynamic, dynamic>);
  });

  return list;
}