v4.1.0
console
कंसोल एप्लिकेशन के लिए आवश्यक सामान्य विशेषताओं के लिए एक पुस्तकालय, जिसमें रंग प्रारूपन, कीबोर्ड इनपुट और प्रगति बार शामिल हैं।
70लाइक 1.8 लाख30-दिन डाउनलोड120Pub अंक
AndroidiOSmacOSWindowsLinux
कंसोल लाइब्रेरी
^2.1.0^1.16.8^1.11.0यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A high-level console library.
This library does not work in browsers (for a hopefully obvious reason).
import "package:console/console.dart";
void main() {
// Initialize the Console. Throws an exception if advanced terminal features are not supported.
Console.init();
// Use the library...
}
You can test the output produced by this library (and thus your own project that uses this library). Here is an example:
import "package:test/test.dart";
import "package:console/console.dart";
void main() {
final output = new BufferConsoleAdapter();
setUpAll(() => Console.adapter = output);
// Clear output between test runs
setUp(() => output.clear());
group('base functions', () {
test('centerCursor', () {
Console.centerCursor();
expect(output.toString(), '${Console.ANSI_ESCAPE}10;40H');
});
});
}