File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/flutter/lib/src/services Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -62,8 +62,12 @@ abstract class AssetBundle {
6262 /// If the `cache` argument is set to false, then the data will not be
6363 /// cached, and reading the data may bypass the cache. This is useful if the
6464 /// caller is going to be doing its own caching. (It might not be cached if
65- /// it's set to true either, that depends on the asset bundle
66- /// implementation.)
65+ /// it's set to true either, depending on the asset bundle implementation.)
66+ ///
67+ /// The function expects the stored string to be UTF-8-encoded as
68+ /// [Utf8Codec] will be used for decoding the string. If the string is
69+ /// larger than 50 KB, the decoding process is delegated to an
70+ /// isolate to avoid jank on the main thread.
6771 Future <String > loadString (String key, { bool cache = true }) async {
6872 final ByteData data = await load (key);
6973 if (data == null )
You can’t perform that action at this time.
0 commit comments