W3cubDocs

/Dart 2

ascii top-level constant

const ascii = const AsciiCodec()

An instance of the default implementation of the AsciiCodec.

This instance provides a convenient access to the most common ASCII use cases.

Examples:

var encoded = ascii.encode("This is ASCII!");
var decoded = ascii.decode([0x54, 0x68, 0x69, 0x73, 0x20, 0x69, 0x73,
                            0x20, 0x41, 0x53, 0x43, 0x49, 0x49, 0x21]);

Implementation

const AsciiCodec ascii = const AsciiCodec()

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-convert/ascii-constant.html