The beacon will start in the idle state when manualStart is set to true.
test('should not start stream until start() is called', () async {
final myStream = Stream.periodic(k10ms, (i) => i + 1);
final myBeacon = Beacon.stream(myStream, manualStart: true);
expect(myBeacon.isIdle, true);
myBeacon.start();
expect(myBeacon.isLoading, true);
final next = await myBeacon.next();
expect(next.isData, true);
});
Type of Change
[ ] โจ New feature (non-breaking change which adds functionality)
[ ] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
[ ] โ Breaking change (fix or feature that would cause existing functionality to change)
Description
The beacon will start in the
idle
state when manualStart is set to true.Type of Change