SecureApplication class Null safety

Widget that will manage Secure Gates and visibility protection for your app content

Should be above any SecureGate provide to all it descendants a SecureApplicationController that can be used to secure/open and lock/unlock

Inheritance

Constructors

SecureApplication({Key? key, required Widget child, Future<SecureApplicationAuthenticationStatus?>? onNeedUnlock(SecureApplicationController? secureApplicationStateNotifier)?, SecureApplicationController? secureApplicationController, bool autoUnlockNative = true, VoidCallback? onAuthenticationFailed, VoidCallback? onAuthenticationSucceed, VoidCallback? onLogout, int nativeRemoveDelay = 1000})
const

Properties

autoUnlockNative bool
This will remove IOs glass effect from native automatically. To set to true (default) if you don't want to manage it you can play with the nativeRemoveDelay to avoid iOS unsecure flicker
final
child Widget
Child of the widget
final
hashCode int
The hash code for this object.
@nonVirtual, read-only, inherited
key Key?
Controls how one widget replaces another widget in the tree.
final, inherited
nativeRemoveDelay int
the time in milliseconds we wait to remove the native protection screen usefull on iOS to let long app start
final
onAuthenticationFailed VoidCallback?
will be called if authentication failed
final
onAuthenticationSucceed VoidCallback?
will be called if authentication succeed
final
onLogout VoidCallback?
will be called if authentication succeed
final
onNeedUnlock → (Future<SecureApplicationAuthenticationStatus?>? Function?(SecureApplicationController? secureApplicationStateNotifier)?)
Method will be called when the user switch back to your application
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secureApplicationController SecureApplicationController?
controller of the SecureApplication
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SecureApplicationState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtual, inherited