by @kodeazy
flutter How to convert ASCII value to its String format?
In this blog we will discuss on how to convert ASCII
value to String
To convert ASCII
to its String
value we use AsciiDecoder
class convert
method by importing import 'dart:convert'
.
Below is the syntax
AsciiDecoder().convert(example);
Below is the example code of converting ASCII
to its String
value that are in range between 0 .. 127
.
import 'dart:convert';
void main() {
var example = [
102,
108,
117,
116,
116,
101,
114,
32,
69,
120,
97,
109,
112,
108,
101
];
print(AsciiDecoder().convert(example));
}
Output:
flutter Example