Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shindakioku/events


https://github.com/shindakioku/events

Last synced: 5 days ago
JSON representation

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