mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Add keep annotation to Locale.toString (#17376)
This commit is contained in:
parent
3ee9e3d378
commit
4affba4fec
@ -492,6 +492,7 @@ class Locale {
|
||||
/// This identifier happens to be a valid Unicode Locale Identifier using
|
||||
/// underscores as separator, however it is intended to be used for debugging
|
||||
/// purposes only. For parseable results, use [toLanguageTag] instead.
|
||||
@keepToString
|
||||
@override
|
||||
String toString() {
|
||||
if (!identical(_cachedLocale, this)) {
|
||||
|
||||
@ -19,6 +19,7 @@ import 'dart:typed_data';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
// HACK: these parts are to get access to private functions tested here.
|
||||
part '../../lib/ui/annotations.dart';
|
||||
part '../../lib/ui/channel_buffers.dart';
|
||||
part '../../lib/ui/compositing.dart';
|
||||
part '../../lib/ui/geometry.dart';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user