Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shindakioku/events
https://github.com/shindakioku/events
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/shindakioku/events
- Owner: shindakioku
- License: bsd-3-clause
- Created: 2018-03-21T22:45:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-23T22:18:51.000Z (almost 7 years ago)
- Last Synced: 2023-08-20T21:56:46.423Z (over 1 year ago)
- Language: Dart
- Size: 16.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# f_events
A library for Dart developers.
Created from templates made available by Stagehand under a BSD-style
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).## Usage
A simple usage example:
```dart
import 'package:f_events/f_events.dart';
class Event {
String data;Event(this.data);
}void main() {
event.register('event_name', new Event());
event.listen('event_name', (Event event) => print(event.data));
event.call('event_name', positionalArguments: ['String']);
}
```
### Todo- [ ] Write examples
- [ ] tests 100%
- [ ] Make lazy loading
- [ ] Make mechanism for automatically calling events from property in listener## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
[tracker]: https://github.com/shindakioku/events/issues