fromLocalization<T> static method

ContactLabels<T> fromLocalization<T>(
  1. BuildContext context
)

Implementation

static ContactLabels<T> fromLocalization<T>(
  BuildContext context,
) {
  final l10n = context.l10n;
  return ContactLabels<T>(
    type: l10n.typeFieldName,
    description: l10n.descriptionFieldName,
    emailAddress: l10n.emailAddressFieldName,
    phoneNumber: l10n.phoneNumberFieldName,
    socialMediaHandle: l10n.socialMediaHandleFieldName,
  );
}