FlutsterTestRecorderState class

Inheritance

Constructors

FlutsterTestRecorderState()

Properties

apiDeleteOngoing bool
apiDeleteOngoing is true when the test record is being deleted from the Flutster API.
getter/setter pair
apiListingOngoing bool
apiListingOngoing is true when the test records are being listed from the Flutster API.
getter/setter pair
apiLoadOngoing bool
apiLoadOngoing is true when the test record is being loaded from the Flutster API.
getter/setter pair
apiSaveOngoing bool
apiSaveOngoing is true when the test record is being saved to the Flutster API.
getter/setter pair
buttonSize double
buttonSize is the size of each side of the Flutster floating button.
getter/setter pair
buttonSizeMaxProportion double
buttonSizeMaxProportion shrinks the Flutster floating button if the screen height or width is smaller than the button divided by the proportion.
getter/setter pair
context BuildContext
The location in the tree where this widget builds.
no setterinherited
doublePressDelay Duration
doublePressDelay is the maximum time the user can click a second time on the Flutster floating button to consider a double click.
final
floatingButtonPosition Offset?
floatingButtonPosition keeps track of the Flutster floating button position.
getter/setter pair
focusNode FocusNode
focusNode is the keyboard listener focus node.
final
hashCode int
The hash code for this object.
no setterinherited
latestFABPressed DateTime
latestFABPressed is used to handle the double click on the Flutster floating button.
getter/setter pair
mounted bool
Whether this State object is currently in a tree.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenKey GlobalKey<State<StatefulWidget>>
screenKey helps in retrieving a screenshot.
getter/setter pair
testNameFieldController TextEditingController
testNameFieldController is the text field controller for the test name.
getter/setter pair
widget FlutsterTestRecorder
The current configuration.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
apiLoad(BuildContext context, dynamic updateUI(), int? testRecordId, dynamic snackHere(dynamic)) → dynamic
apiLoad loads a record from the https://flutster.com API.
build(BuildContext context) Widget
build as with any stateful widget state.
override
buildFAB(void setState(VoidCallback fn)) Widget
buildFAB returns the Flutster floating button widget.
clearTestRecordButton(BuildContext context, StateSetter setState) Widget
clearTestRecordButton builds a button to flush the test record, clear the test name, clear the test record id.
closeTestRecordDialog() → void
closeTestRecordDialog closes the test record dialog
confirmedAction({required BuildContext context, String? title, required String message, String cancelText = "Cancel", String okText = "Ok", String? sosoText, required dynamic onOk(), dynamic onSoso()?}) → dynamic
confirmedAction is called to let the user confirm an action.
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
deleteTestRecordButton(BuildContext context, StateSetter setState) Widget
deleteTestRecordButton builds a button to delete the test record.
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant FlutsterTestRecorder oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Called when this object is removed from the tree permanently.
inherited
fABPressed(void updateParent(VoidCallback fn)) → void
fABPressed is called when the Flutster floating button is pressed.
initState() → void
initState as with any stateful widget state.
override
loadTestRecordFromClipboardButton(BuildContext context, StateSetter setState) Widget
loadTestRecordFromClipboardButton builds a button to load the test record from the clipboard.
makeLabelValueBlock(String label, dynamic value, {String? tooltip}) Widget
makeLabelValueBlock uniformizes the display of labels with values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openFlutsterTestMenu(void updateParent(VoidCallback fn)) → void
openFlutsterTestMenu is called to open the Flutster test menu.
playEvent(FlutsterTestEvent flutsterTestEvent, {Duration delay = const Duration(milliseconds: 0), WidgetTester? tester}) Future<FlutsterTestEvent?>
playEvent plays the given event on the child widget.
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
returnScreenShot() Future<Image?>
returnScreenShot takes and returns the screenshot as an image.
returnScreenShotEvent({FlutsterTestEvent? duplicate, WidgetTester? tester}) Future<FlutsterTestEvent?>
returnScreenShotEvent takes a screenshot and returns it as a test event.
returnScreenShotPngBytes({int retries = 100, WidgetTester? tester}) Future<Uint8List?>
returnScreenShotPngBytes takes a screenshot of the child widget and returns the bytes of the png file.
save(Function snackHere, dynamic updateUI()) → void
save saves the record to the https://flutster.com API.
saveTestRecordToApiButton(BuildContext context, StateSetter setState) Widget
saveTestRecordToApiButton builds a button to save the test record to the https://flutster.com API.
selectFromApiList(BuildContext context, dynamic updateUI(), dynamic apiLoad(BuildContext context, dynamic updateUI(), int? testRecordId, dynamic snackHere(dynamic content)), dynamic snackHere(dynamic content)) → void
selectFromApiList lets the user choose from the list of test records from the https://flutster.com API.
selectTestRecordFromApiButton(BuildContext context, StateSetter setState) Widget
selectTestRecordFromApiButton builds a button to select a test record from the https://flutster.com API.
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
share() → dynamic
share is called when the user wants to share the Flutster test record.
shareTestRecordButton(BuildContext context, StateSetter setState) Widget
shareTestRecordButton builds a button to share the test record.
snack(dynamic content, [BuildContext? givenContext]) → void
snack displays a snack with the given content (string or widget).
startRecordingButton(BuildContext context, StateSetter setState, void updateParent(VoidCallback fn)) Widget
startRecordingButton builds a button to start the recording.
stopDisplayingFlutsterButton(BuildContext context, StateSetter setState) Widget
stopDisplayingFlutsterButton builds a button to stop displaying the Flutster floating button.
stopRecordingButton(BuildContext context, StateSetter setState, void updateParent(VoidCallback fn)) Widget
stopRecordingButton builds a button to stop the recording.
strDtToStr(String s) String
strDtToStr helps in standardizing the date string format.
takeScreenShot(void updateParent(VoidCallback fn)) Future<void>
takeScreenShot takes the screenshot and saves the event in the record.
takeScreenShotButton(BuildContext context, StateSetter setState, void updateParent(VoidCallback fn)) Widget
takeScreenShotButton builds a button to take a screenshot of the child widget.
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
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

snackStatic(dynamic content, BuildContext givenContext) → void
snackStatic displays a snack with the given content (string or widget). This static function requires the context