hrk_batteries 0.1.0-dev.1 copy "hrk_batteries: ^0.1.0-dev.1" to clipboard
hrk_batteries: ^0.1.0-dev.1 copied to clipboard

A library to accumulate required dart helper and utility codes

ci codecov

A library to accumulate required dart helper and utility codes

Features #

  • Easy detection of whether code running in Test without hassle of conditional imports files

Getting started #

dart pub add hrk_batteries

Usage #

import 'package:hrk_batteries/hrk_batteries.dart';

void main() {
  // Logger log = Logger();
  // late Level level;
  if (isDartOrFlutterTest()) {
    // level = Level.INFO;
  } else {
    // level = Level.SEVERE;
  }
  // log.log(level, 'Needs Attention');
}
4
likes
0
points
18.1k
downloads

Publisher

verified publisherhrishikesh-kadam.dev

Weekly Downloads

A library to accumulate required dart helper and utility codes

Repository (GitHub)
View/report issues

Topics

#batteries #dart-batteries

License

unknown (license)

More

Packages that depend on hrk_batteries