# getMaskedValueWithCustomMask method

Future<String> getMaskedValueWithCustomMask(

1. String fieldId,
2. String mask

)

Returns the value for the given payment product `fieldId` with a custom `mask` applied.

## Implementation

    Future<String> getMaskedValueWithCustomMask(String fieldId, String mask) async {
      final maskedValue = await AccountOnFileMasker.customMaskedValue(this, fieldId, mask);
      return maskedValue;
    }