bytes property
The font's bytes; every call after the first returns the same future.
Implementation
Future<Uint8List> get bytes {
final pending = _bytes;
if (pending != null) return pending;
final next = _load();
_bytes = next;
next.then<void>((_) {}, onError: (Object _) {
if (identical(_bytes, next)) _bytes = null;
});
return next;
}