BloomEvent.fakeInput constructor
BloomEvent.fakeInput(
- String value
Creates a synthetic input BloomEvent carrying value for VM unit testing.
final input = Input(
on: {'input': (e) => username.value = e.value ?? ''},
);
input.on?['input']?.call(BloomEvent.fakeInput('antigravity'));
Implementation
factory BloomEvent.fakeInput(String value) =>
BloomEvent(type: 'input', value: value);