unmask<T extends Widget> method
Unmask given widget type T (or subclasses of T) in the replay. This is
useful to explicitly show certain widgets that would otherwise be masked
by other rules, for example default maskAllText or maskAllImages.
The SentryMaskingDecision.unmask will apply to the widget and its children,
so no other rules will be checked for the children.
Note: masking rules are called in the order they're added so if a previous
rule already makes a decision, this rule won't be called.
Implementation
@experimental
void unmask<T extends Widget>({String? name, String? description}) {
assert(T != SentryMask);
assert(T != SentryUnmask);
_userMaskingRules.add(SentryMaskingConstantRule<T>(
mask: false,
name: name ?? T.toString(),
description: description,
));
}