of static method
Returns the ShadLocalizationsData for the nearest Localizations ancestor.
Falls back to English when no delegate is found in the widget tree.
Implementation
static ShadLocalizationsData of(BuildContext context) {
final data = Localizations.of<ShadLocalizationsData>(
context,
ShadLocalizationsData,
);
return data ?? ShadLocalizationsData();
}