StringMasker class

字符串掩码工具类 用于对敏感信息进行掩码处理,例如手机号、AppKey等。

Constructors

StringMasker.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

maskSensitiveKeyInString(String? originalText, String? sensitiveKey) String?
maskString(String? originalText, {int unmaskedPrefixLength = 4, int unmaskedSuffixLength = 4, String maskingCharacter = '*'}) String?