console_color 3.0.0 copy "console_color: ^3.0.0" to clipboard
console_color: ^3.0.0 copied to clipboard

The convenient enum of 256 colors for console. This library gives the color code for the console an easily recognizable name.

example/example.dart

// Copyright (c) 2022, Kato Shinya. All rights reserved.
// Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:console_color/console_color.dart';

void main() {
  final color = ConsoleColor.cyan1;
  print(color.name);
  print(color.code);

  for (final color in ConsoleColor.values) {
    print('name=${color.name}');
    print('code=${color.code}');
  }
}
3
likes
160
pub points
7%
popularity

Publisher

unverified uploader

The convenient enum of 256 colors for console. This library gives the color code for the console an easily recognizable name.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on console_color