From f19674853c120bc9dbb1087c4085963dab87ad06 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 1 Oct 2018 13:29:21 -0700 Subject: [PATCH] move doc comment back (#22525) --- .../lib/src/cupertino/localizations.dart | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/flutter/lib/src/cupertino/localizations.dart b/packages/flutter/lib/src/cupertino/localizations.dart index 7eac5ceb11..18273f89ad 100644 --- a/packages/flutter/lib/src/cupertino/localizations.dart +++ b/packages/flutter/lib/src/cupertino/localizations.dart @@ -173,19 +173,6 @@ abstract class CupertinoLocalizations { /// This function will deal with pluralization based on the `second` parameter. String timerPickerSecondLabel(int second); - /// The `CupertinoLocalizations` from the closest [Localizations] instance - /// that encloses the given context. - /// - /// This method is just a convenient shorthand for: - /// `Localizations.of(context, CupertinoLocalizations)`. - /// - /// References to the localized resources defined by this class are typically - /// written in terms of this method. For example: - /// - /// ```dart - /// CupertinoLocalizations.of(context).anteMeridiemAbbreviation; - /// ``` - /// The term used for cutting String get cutButtonLabel; @@ -198,6 +185,18 @@ abstract class CupertinoLocalizations { /// The term used for selecting everything String get selectAllButtonLabel; + /// The `CupertinoLocalizations` from the closest [Localizations] instance + /// that encloses the given context. + /// + /// This method is just a convenient shorthand for: + /// `Localizations.of(context, CupertinoLocalizations)`. + /// + /// References to the localized resources defined by this class are typically + /// written in terms of this method. For example: + /// + /// ```dart + /// CupertinoLocalizations.of(context).anteMeridiemAbbreviation; + /// ``` static CupertinoLocalizations of(BuildContext context) { return Localizations.of(context, CupertinoLocalizations); }