LdFrameOptions class

Configuration options for creating device frames in golden tests.

This class defines the appearance and behavior of device frames used to wrap widgets during testing, including dimensions, padding, and UI overlays.

Constructors

LdFrameOptions({String label = '', EdgeInsets viewPaddig = EdgeInsets.zero, Widget build(BuildContext context, Orientation orientation, Widget child, bool dark, SystemUiOverlayStyle navigationBarStyle)?, double width = 500, double? height, double devicePixelRatio = 1.0, double? screenRadius, TargetPlatform? targetPlatform})
Creates a configuration for a device frame.
const

Properties

build Widget Function(BuildContext context, Orientation orientation, Widget child, bool dark, SystemUiOverlayStyle navigationBarStyle)?
Optional builder function to customize the frame's appearance.
final
devicePixelRatio double
The device pixel ratio to use for the frame.
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The height of the device frame in logical pixels.
final
label String
An optional label for referencing this frame option in test slugs.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenRadius double?
The corner radius of the device screen in logical pixels.
final
targetPlatform TargetPlatform?
final
viewPaddig EdgeInsets
Padding applied to the view inside the frame.
final
width double
The width of the device frame in logical pixels.
final

Methods

copyWith({String? label, EdgeInsets? viewPaddig, Widget build(BuildContext context, Orientation orientation, Widget child, bool dark, SystemUiOverlayStyle navigationBarStyle)?, double? width, double? height, double? devicePixelRatio, double? screenRadius, TargetPlatform? targetPlatform}) LdFrameOptions
Creates a copy of this LdFrameOptions but with the given fields replaced by the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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