Inheritance
System.Object
MediaQueryData
public class MediaQueryData : IEquatable<MediaQueryData>
Constructors
Declaration
public MediaQueryData(Size size = null, float devicePixelRatio = 1F, float textScaleFactor = 1F, Brightness platformBrightness = Brightness.light, EdgeInsets viewInsets = null, EdgeInsets padding = null, bool alwaysUse24HourFormat = false, bool accessibleNavigation = false, bool invertColors = false, bool disableAnimations = false, bool boldText = false)
Parameters
Type |
Name |
Description |
Size |
size |
|
System.Single |
devicePixelRatio |
|
System.Single |
textScaleFactor |
|
Brightness |
platformBrightness |
|
EdgeInsets |
viewInsets |
|
EdgeInsets |
padding |
|
System.Boolean |
alwaysUse24HourFormat |
|
System.Boolean |
accessibleNavigation |
|
System.Boolean |
invertColors |
|
System.Boolean |
disableAnimations |
|
System.Boolean |
boldText |
|
Fields
Declaration
public readonly bool accessibleNavigation
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly bool alwaysUse24HourFormat
Field Value
Type |
Description |
System.Boolean |
|
boldText
Declaration
public readonly bool boldText
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly float devicePixelRatio
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly bool disableAnimations
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly bool invertColors
Field Value
Type |
Description |
System.Boolean |
|
Declaration
public readonly EdgeInsets padding
Field Value
Declaration
public readonly Brightness platformBrightness
Field Value
Declaration
public readonly Size size
Field Value
textScaleFactor
Declaration
public readonly float textScaleFactor
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly EdgeInsets viewInsets
Field Value
Properties
Declaration
public Orientation orientation { get; }
Property Value
Methods
Declaration
public MediaQueryData copyWith(Size size = null, float? devicePixelRatio = default(float? ), float? textScaleFactor = default(float? ), Brightness? platformBrightness = default(Brightness? ), EdgeInsets viewInsets = null, EdgeInsets padding = null, bool? alwaysUse24HourFormat = default(bool? ), bool? accessibleNavigation = default(bool? ), bool? invertColors = default(bool? ), bool? disableAnimations = default(bool? ), bool? boldText = default(bool? ))
Parameters
Type |
Name |
Description |
Size |
size |
|
System.Nullable<System.Single> |
devicePixelRatio |
|
System.Nullable<System.Single> |
textScaleFactor |
|
System.Nullable<Brightness> |
platformBrightness |
|
EdgeInsets |
viewInsets |
|
EdgeInsets |
padding |
|
System.Nullable<System.Boolean> |
alwaysUse24HourFormat |
|
System.Nullable<System.Boolean> |
accessibleNavigation |
|
System.Nullable<System.Boolean> |
invertColors |
|
System.Nullable<System.Boolean> |
disableAnimations |
|
System.Nullable<System.Boolean> |
boldText |
|
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(MediaQueryData other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static MediaQueryData fromWindow(Window window)
Parameters
Type |
Name |
Description |
Window |
window |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public MediaQueryData removePadding(bool removeLeft = false, bool removeTop = false, bool removeRight = false, bool removeBottom = false)
Parameters
Type |
Name |
Description |
System.Boolean |
removeLeft |
|
System.Boolean |
removeTop |
|
System.Boolean |
removeRight |
|
System.Boolean |
removeBottom |
|
Returns
Declaration
public MediaQueryData removeViewInsets(bool removeLeft = false, bool removeTop = false, bool removeRight = false, bool removeBottom = false)
Parameters
Type |
Name |
Description |
System.Boolean |
removeLeft |
|
System.Boolean |
removeTop |
|
System.Boolean |
removeRight |
|
System.Boolean |
removeBottom |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static bool operator ==(MediaQueryData left, MediaQueryData right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(MediaQueryData left, MediaQueryData right)
Parameters
Returns
Type |
Description |
System.Boolean |
|