TestScreenDevice class
Definition of a device for testing.
Constructors
- TestScreenDevice({required String id, required String manufacturer, required String name, required Size size, double devicePixelRatio = 1.0})
-
const
- TestScreenDevice.forWeb(double width, double height)
-
Returns a TestScreenDevice for a web screen.
The defaults values are:
id: 'web_${width}x${height}'
manufacturer: 'web'
name: '${width}x${height}'
devicePixelRatio: 1.0
factory
- TestScreenDevice.forWebWithSize(Size size)
-
Returns a TestScreenDevice for a web screen.
The defaults values are:
id: 'web_${size.width}x${size.height}'
manufacturer: 'web'
name: '${size.width}x${size.height}'
devicePixelRatio: 1.0
factory
Properties
- devicePixelRatio → double
-
Device pixel ratio
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Device id
final
- manufacturer → String
-
Manufacturer name
final
- name → String
-
Device model name
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size
-
Physical device size
final
Methods
-
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