dataStream method
Implementation
@override
Stream<SPDataModel> dataStream() {
return dataChannel.receiveBroadcastStream('dataStream').map(
(event) => SPDataModel.fromMap(
Map<String, dynamic>.from(event),
),
);
}
@override
Stream<SPDataModel> dataStream() {
return dataChannel.receiveBroadcastStream('dataStream').map(
(event) => SPDataModel.fromMap(
Map<String, dynamic>.from(event),
),
);
}