stepsChangeEveStm property
Stream<StepsChangeBean>
get
stepsChangeEveStm
Implementation
Stream<StepsChangeBean> get stepsChangeEveStm {
return const EventChannel(ChannelNames.eventStepsChange)
.receiveBroadcastStream()
.map((dynamic event) {
// if (event is int) {
// return StepsChangeBean(
// stepsInfo: StepsChange(calories: 0, distance: 0, steps: 0, time: 0),
// timeType: 0);
// } else {
// return stepsChangeBeanFromJson(event.toString());
// }
return stepsChangeBeanFromJson(event);
});
}