TornPaper class
TornPaper
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TornPaper
Constructors
-
TornPaper({Widget child = const SizedBox.shrink(), List<
TornedSide> tornedSides = const [], int seed = 369, int stepWidth = 8, Color tornColor = Colors.black, double tornWidth = 1.0, double tornDeepness = 5.0, Color backgroundColor = Colors.white, bool hasNoise = false, Color noiseColor = Colors.black, bool hasBorder = true, Offset shadowOffset = const Offset(8.0, 8.0), Color shadowColor = Colors.black, bool hasShadow = true, Key? key}) - Constructor of TornPaper
Properties
- backgroundColor → Color
-
Color of Background
final
- child → Widget
-
child widget inside this Container
final
- hasBorder → bool
-
Has Border or not
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNoise → bool
-
Has Noise or not
final
- hasShadow → bool
-
Has shadow or not
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- noiseColor → Color
-
Color of Noise
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed → int
-
Randomseed for torn generation
final
- shadowColor → Color
-
Color of the shadow
final
- shadowOffset → Offset
-
Offset of the shadow in relation to the container
final
- stepWidth → int
-
step width of torn
final
- tornColor → Color
-
Color of torn
final
- tornDeepness → double
-
How deep is your Torn?
final
-
tornedSides
→ List<
TornedSide> -
List of sides that are torned
final
- tornWidth → double
-
Width of torn as meant as thickness of border
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _TornPaperState -
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.
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