plugins 0.1.0 copy "plugins: ^0.1.0" to clipboard
plugins: ^0.1.0 copied to clipboard

outdated

A simple plugin loading system

example/plugins.dart

import 'package:plugins/loader.dart';
import 'dart:io';

void main() {
  PluginManager pm = new PluginManager();
  Directory path = new Directory("example" + Platform.pathSeparator + "plugins");
  pm.loadAll(path).then((_) {
    pm.listen("Test", (data) {
      print("Received data in loader: ${data[0]}");
      pm.kill("Test");
    });
    Map m = new Map();
    m[0] = "Hello from loader!";
    pm.sendAll(m);
  });

}
1
likes
0
points
12
downloads

Publisher

unverified uploader

Weekly Downloads

A simple plugin loading system

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

path, yaml

More

Packages that depend on plugins