getItem static method
FastItem<String>
getItem(
- BuildContext context,
- FastSettingsItems value, {
- String? labelText,
- String? valueText,
Implementation
static FastItem<String> getItem(
BuildContext context,
FastSettingsItems value, {
String? labelText,
String? valueText,
}) {
assert(kFastSettingsItemDescriptors[value] != null);
final item = kFastSettingsItemDescriptors[value]!;
final defaultLabelText = item.labelText;
return kFastSettingsItemDescriptors[value]!.copyWith(
descriptor: buildListItemDescriptor(context, item, value),
labelText: labelText ?? defaultLabelText.tr(),
value: valueText,
);
}