console_color 3.0.0 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.
// 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}');
}
}