phoneDataToFormattedString static method

String? phoneDataToFormattedString(
  1. Object? value
)

Implementation

static String? phoneDataToFormattedString(Object? value) {
  if (value is String) {
    return value;
  } else if (value is PhoneData) {
    return value.fullPhone;
  }

  return value?.toString();
}