moontree_utils 1.0.6 copy "moontree_utils: ^1.0.6" to clipboard
moontree_utils: ^1.0.6 copied to clipboard

generic dart utilities shared across moontree repos

Generic Dart Utilities, made specifically to support multiple Moontree repos.

Example #

//import 'package:moontree_utils/moontree_utils.dart'; // everything
//import 'package:moontree_utils/extensions/extensions.dart'; // all extensions
import 'package:moontree_utils/extensions/int.dart'; 
import 'package:moontree_utils/src/mixins.dart' show ToStringMixin;
import 'package:moontree_utils/src/list.dart' show range;

class Example with ToStringMixin {
  final String symbol;

  Example(this.symbol);

  @override
  List<Object?> get props => <Object?>[symbol];

  @override
  List<String> get propNames => ['symbol'];

  void example() {
    for (var i in range(100, start: 999)) {
      print(i.toCommaString()); // 999 1,000 1,001 ... 1,099 
    }
  }
}
0
likes
0
pub points
37%
popularity

Publisher

unverified uploader

generic dart utilities shared across moontree repos

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

bs58, collection, convert, quiver, tuple

More

Packages that depend on moontree_utils