icecream 0.1.3 copy "icecream: ^0.1.3" to clipboard
icecream: ^0.1.3 copied to clipboard

Dart 1 only

A simple debuger tool

example/example.dart

import 'package:icecream/icecream.dart' show ic;

num bar(num x, num y) {
  return x + y;
}

main() async {
  await ic();
  await ic.disable();
  await ic();
  await ic.enable();
  await ic();

  await simpleExample();
  await diaableIc();
  await changePrefix();
}

changePrefix() async {
  await ic.setPrefix("ic |");
  await ic(3);
}

simpleExample() async {
  await ic(3);
  await ic(bar(1, 2));
}

diaableIc() async {
  await ic();
  await ic.disable();
  await ic();
  await ic.enable();
  await ic();
}
1
likes
20
pub points
13%
popularity

Publisher

unverified uploader

A simple debuger tool

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

colorize, inspect

More

Packages that depend on icecream