instance static method

Chalk instance({
  1. int level = -1,
})

Use to create a new 'root' instance of Chalk, with the option of setting the ANSI color level (root instances start with no style).

Implementation

static Chalk instance({int level = -1}) {
  final instance = Chalk._internal(null, hasStyle: false);
  if (level != -1) {
    instance.level = level;
  }
  return instance;
}