Flutter
material
MaterialLocalizations
formatYear abstract method
formatYear
description
formatYear
method
Null safety
String
formatYear
(
DateTime
date
)
Full unabbreviated year format, e.g. 2017 rather than 17.
Implementation
String formatYear(DateTime date);
Flutter
material
MaterialLocalizations
formatYear abstract method
MaterialLocalizations class
Constructors
MaterialLocalizations
Properties
alertDialogLabel
anteMeridiemAbbreviation
backButtonTooltip
calendarModeButtonLabel
cancelButtonLabel
closeButtonLabel
closeButtonTooltip
collapsedIconTapHint
continueButtonLabel
copyButtonLabel
cutButtonLabel
dateHelpText
dateInputLabel
dateOutOfRangeLabel
datePickerHelpText
dateRangeEndLabel
dateRangePickerHelpText
dateRangeStartLabel
dateSeparator
deleteButtonTooltip
dialModeButtonLabel
dialogLabel
drawerLabel
expandedIconTapHint
firstDayOfWeekIndex
firstPageTooltip
hashCode
hideAccountsLabel
inputDateModeButtonLabel
inputTimeModeButtonLabel
invalidDateFormatLabel
invalidDateRangeLabel
invalidTimeLabel
keyboardKeyAlt
keyboardKeyAltGraph
keyboardKeyBackspace
keyboardKeyCapsLock
keyboardKeyChannelDown
keyboardKeyChannelUp
keyboardKeyControl
keyboardKeyDelete
keyboardKeyEject
keyboardKeyEnd
keyboardKeyEscape
keyboardKeyFn
keyboardKeyHome
keyboardKeyInsert
keyboardKeyMeta
keyboardKeyMetaMacOs
keyboardKeyMetaWindows
keyboardKeyNumLock
keyboardKeyNumpad0
keyboardKeyNumpad1
keyboardKeyNumpad2
keyboardKeyNumpad3
keyboardKeyNumpad4
keyboardKeyNumpad5
keyboardKeyNumpad6
keyboardKeyNumpad7
keyboardKeyNumpad8
keyboardKeyNumpad9
keyboardKeyNumpadAdd
keyboardKeyNumpadComma
keyboardKeyNumpadDecimal
keyboardKeyNumpadDivide
keyboardKeyNumpadEnter
keyboardKeyNumpadEqual
keyboardKeyNumpadMultiply
keyboardKeyNumpadParenLeft
keyboardKeyNumpadParenRight
keyboardKeyNumpadSubtract
keyboardKeyPageDown
keyboardKeyPageUp
keyboardKeyPower
keyboardKeyPowerOff
keyboardKeyPrintScreen
keyboardKeyScrollLock
keyboardKeySelect
keyboardKeySpace
lastPageTooltip
licensesPageTitle
menuBarMenuLabel
modalBarrierDismissLabel
moreButtonTooltip
narrowWeekdays
nextMonthTooltip
nextPageTooltip
okButtonLabel
openAppDrawerTooltip
pasteButtonLabel
popupMenuLabel
postMeridiemAbbreviation
previousMonthTooltip
previousPageTooltip
refreshIndicatorSemanticLabel
reorderItemDown
reorderItemLeft
reorderItemRight
reorderItemToEnd
reorderItemToStart
reorderItemUp
rowsPerPageTitle
runtimeType
saveButtonLabel
scriptCategory
searchFieldLabel
selectAllButtonLabel
selectYearSemanticsLabel
showAccountsLabel
showMenuTooltip
signedInLabel
timePickerDialHelpText
timePickerHourLabel
timePickerHourModeAnnouncement
timePickerInputHelpText
timePickerMinuteLabel
timePickerMinuteModeAnnouncement
unspecifiedDate
unspecifiedDateRange
viewLicensesButtonLabel
Methods
aboutListTileTitle
dateRangeEndDateSemanticLabel
dateRangeStartDateSemanticLabel
formatCompactDate
formatDecimal
formatFullDate
formatHour
formatMediumDate
formatMinute
formatMonthYear
formatShortDate
formatShortMonthDay
formatTimeOfDay
formatYear
licensesPackageDetailText
noSuchMethod
pageRowsInfoTitle
parseCompactDate
remainingTextFieldCharacterCount
selectedRowCountTitle
tabLabel
timeOfDayFormat
toString
Operators
operator ==
Static methods
of