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

outdated

A set of common interfaces for Dart classes. Made mostly for internal usage.

example/interfaces_example.dart

import 'package:interfaces/interfaces.dart';

class PrintsByeOnDispose with DisposableMixin {
  @override
  void dispose() {
    print('Bye');

    super.dispose();
  }
}

void main() {
  final myObject = PrintsByeOnDispose();

  // false
  print(myObject.isDisposed);

  // Bye
  myObject.dispose();

  // true
  print(myObject.isDisposed);
}
0
likes
0
points
59
downloads

Publisher

unverified uploader

Weekly Downloads

A set of common interfaces for Dart classes. Made mostly for internal usage.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

lint, meta

More

Packages that depend on interfaces