move doc comment back (#22525)

This commit is contained in:
Jonah Williams 2018-10-01 13:29:21 -07:00 committed by GitHub
parent f62afdcf57
commit f19674853c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<CupertinoLocalizations>(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<CupertinoLocalizations>(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<CupertinoLocalizations>(context, CupertinoLocalizations);
}