bitchannel 0.0.2 copy "bitchannel: ^0.0.2" to clipboard
bitchannel: ^0.0.2 copied to clipboard

Event support package as a sort of a mix between an event-oriented package and a communication infrastructure package based on channels and bits of information.

bit #

Sort of a mix between an event-oriented package and a communication infrastructure package based on channels and bits of information.

Getting started #

Import the package:

import 'package:bitchannel/bitchannel.dart';

Usage #

See example/main.dart for an illustration of the feature set.

Additional information #

User data in bits #

Each bit accepts json data:

final class TestBit extends Bit {
  @override
  String get bitChannel => "test";

  @override
  Map<String, dynamic> get data => {
        "something": "in the way",
      };
}

Log level #

You can also change the log level:

void main() {
    Bit.logLevel = LogLevel.trace;
}

Global data #

You can set global data that will be pushed with ALL bits:

void main() {
    Bit.globals = {
        "hello": "world",
    };
}

About this package #

This package is the result of many iterations and drifting from a great article from Martin Nowosad.

0
likes
150
points
28
downloads

Publisher

verified publisherwattshout.com

Weekly Downloads

Event support package as a sort of a mix between an event-oriented package and a communication infrastructure package based on channels and bits of information.

Homepage
Repository (GitHub)
View/report issues

Topics

#event

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on bitchannel