console_color 3.0.0 icon indicating copy to clipboard operation
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.

1. About #

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

1.1. Introduction #

1.1.1. Install Library #

With Dart:

 dart pub add console_color

With Flutter:

 flutter pub add console_color

1.1.2. Import It #

import 'package:console_color/console_color.dart';

1.1.3. Use library #

import 'package:console_color/console_color.dart';

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

  for (final color in ConsoleColor.values) {
    print('name=${color.name}');
    print('code=${color.code}');
  }
}

1.2. License #

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.

1.3. More Information #

Console Color was designed and implemented by Kato Shinya.

1
likes
130
pub points
4%
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

Icon for licenses.BSD-3-Clause (LICENSE)

More

Packages that depend on console_color