SecureWidget class

Inheritance

Constructors

SecureWidget({Key? key, required Widget builder(BuildContext context, VoidCallback onInit, VoidCallback onDispose), required bool isSecure, Widget overlayWidgetBuilder(BuildContext context)?, VoidCallback? onScreenshotCaptured, VoidCallback? onScreenRecordingStart, VoidCallback? onScreenRecordingStop, bool debug = false, bool protectInAppSwitcherMenu = true, Color appSwitcherMenuColor = Colors.black})
const

Properties

appSwitcherMenuColor Color
(Optional) iOS The color for the app overlay when the app is in app switcher. Default is Colors.black.
final
builder Widget Function(BuildContext context, VoidCallback onInit, VoidCallback onDispose)
The builder for child widget to be secured.
final
debug bool
(Optional) A bool to show overlay widget, so that debugging is easier. Default is false.
final
hashCode int
The hash code for this object.
no setterinherited
isSecure bool
Whether the child widget should be secured (dynamic change for the same widget).
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onScreenRecordingStart VoidCallback?
(Optional) iOS Callback when screenRecordingStart is detected
final
onScreenRecordingStop VoidCallback?
(Optional) iOS Callback when screenRecordingStop is detected
final
onScreenshotCaptured VoidCallback?
(Optional) iOS Callback when screenshot is captured
final
overlayWidgetBuilder Widget Function(BuildContext context)?
(Optional) Widget to be shown when the child widget is secured. If not provided, a default secure widget will be shown in which the whole screen will be blurred.
final
protectInAppSwitcherMenu bool
(Optional) iOS A bool to show a colored overlay on the full app, when it is viewed in app switcher. Default is true.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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