SentryPrivacyOptions class

Configuration of the experimental privacy feature.

Constructors

SentryPrivacyOptions()

Properties

hashCode int
The hash code for this object.
no setterinherited
maskAllImages bool
Mask content of all images. Draws a rectangle of image bounds with image's dominant color on top. Currently, only Image widgets are masked. Default is enabled (except for asset images, see maskAssetImages).
getter/setter pair
maskAllText bool
Mask all text content. Draws a rectangle of text bounds with text color on top. Currently, only Text and EditableText Widgets are masked. Default is enabled.
getter/setter pair
maskAssetImages bool
Redact asset images coming from the root asset bundle.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

mask<T extends Widget>({String? name, String? description}) → void
Mask given widget type T (or subclasses of T) in the replay. 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.
maskCallback<T extends Widget>(SentryMaskingDecision shouldMask(Element, T), {String? name, String? description}) → void
Provide a custom callback to decide whether to mask the widget of class T (or subclasses of T). 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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unmask<T extends Widget>({String? name, String? description}) → void
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.

Operators

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