WidgetStormProfile class final
A deterministic, named stress profile for WidgetTester.
Constructors
-
WidgetStormProfile.custom(String name, List<
WidgetStormStep> steps, {bool captureFrames = false}) -
A caller-provided deterministic storm.
factory
- WidgetStormProfile.keyboardStorm({int count = 1000, int seed = 1, String keyAlphabet = _defaultStormAlphabet, bool captureFrames = false})
-
Rapid keyboard input at an impossible typing rate.
factory
- WidgetStormProfile.longPaste({int sizeBytes = 100 * 1024, int seed = 1, bool captureFrames = false})
-
One large paste payload.
factory
-
WidgetStormProfile.mixedBurst({int count = 250, int seed = 1, int width = 80, int height = 24, int minWidth = 20, int maxWidth = 120, int minHeight = 8, int maxHeight = 40, int maxDragSteps = 4, String keyAlphabet = _defaultStormAlphabet, List<
KeyType> specialKeys = _defaultStormSpecialKeys, List<String> pasteSamples = _defaultPasteSamples, bool captureFrames = false}) -
Interleaved key, special-key, paste, mouse, drag, resize, and pump steps.
factory
- WidgetStormProfile.mouseFlood({int count = 1000, int seed = 1, int width = 80, int height = 24, bool captureFrames = false})
-
High-frequency mouse motion over a bounded viewport.
factory
- WidgetStormProfile.pathologicalResize({int count = 24, int minWidth = 1, int maxWidth = 200, int minHeight = 1, int maxHeight = 80, bool captureFrames = false})
-
Repeats cramped, wide, tall, and maximum viewport edge cases.
factory
- WidgetStormProfile.rapidResize({int count = 100, int seed = 1, int minWidth = 20, int maxWidth = 120, int minHeight = 8, int maxHeight = 40, bool captureFrames = false})
-
Random resize burst within explicit bounds.
factory
- WidgetStormProfile.resizeOscillation({int widthA = 40, int heightA = 10, int widthB = 120, int heightB = 40, int cycles = 10, bool captureFrames = false})
-
Oscillates between two viewport sizes.
factory
- WidgetStormProfile.resizeSweep({int startWidth = 40, int startHeight = 10, int endWidth = 120, int endHeight = 40, int steps = 12, bool captureFrames = false})
-
Gradual viewport sweep from one size to another.
factory
Properties
- captureFrames → bool
-
Whether the runner should record frames during this profile.
final
- count → int
-
Event count for count-based profiles.
final
- cycles → int
-
Number of resize oscillation cycles.
final
- endHeight → int
-
Sweep or oscillation ending height.
final
- endWidth → int
-
Sweep or oscillation ending width.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → int
-
Coordinate height used by pointer profiles.
final
- keyAlphabet → String
-
Alphabet used by key-generating profiles.
final
- maxDragSteps → int
-
Maximum drag motion steps in mixed bursts.
final
- maxHeight → int
-
Maximum generated resize height.
final
- maxWidth → int
-
Maximum generated resize width.
final
- minHeight → int
-
Minimum generated resize height.
final
- minWidth → int
-
Minimum generated resize width.
final
- name → String
-
Stable profile name for reports and artifacts.
final
-
pasteSamples
→ List<
String> -
Paste corpus for mixed bursts.
final
- pattern → WidgetStormPattern
-
Storm family.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed → int
-
Deterministic seed.
final
- sizeBytes → int
-
Paste size for WidgetStormPattern.longPaste.
final
-
specialKeys
→ List<
KeyType> -
Special-key corpus for mixed bursts.
final
- startHeight → int
-
Sweep or oscillation starting height.
final
- startWidth → int
-
Sweep or oscillation starting width.
final
- width → int
-
Coordinate width used by pointer profiles.
final
Methods
-
generate(
) → List< WidgetStormStep> - Generates the deterministic action sequence for this profile.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Converts this profile into a serialization-friendly map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited