darbiw

Creator: coderz1093

Last updated:

0 purchases

darbiw Image
darbiw Images

Languages

Categories

Add to Cart

Description:

darbiw

darbiw #
Dart binary encoder/decoder with code generation for classes
Getting started #
Tag your classes with the @binary annotation and add the fromBuffer factory constructor:
@binary
final class User {
final String id;
final int age;
final bool enabled;
final AccountType accountType;

User({
required this.id,
required this.age,
required this.enabled,
required this.accountType,
});

factory User.fromBuffer(Uint8List buffer) => _UserFromBuffer(buffer);
}
copied to clipboard
Then run:
dart run build_runner build
copied to clipboard
and your binary methods will be generated.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.