pub enum MediaQueryAspect {
Show 30 variants
Size,
Width,
Height,
Orientation,
DevicePixelRatio,
TextScaler,
PlatformBrightness,
Padding,
ViewInsets,
SystemGestureInsets,
ViewPadding,
AlwaysUse24HourFormat,
AccessibleNavigation,
InvertColors,
HighContrast,
OnOffSwitchLabels,
DisableAnimations,
ReduceMotion,
BoldText,
SupportsAnnounce,
NavigationMode,
GestureSettings,
SupportsShowingSystemContextMenu,
LineHeightScaleFactorOverride,
LetterSpacingOverride,
WordSpacingOverride,
ParagraphSpacingOverride,
DisplayCornerRadii,
CaptionStyle,
TitleBarArea,
}Expand description
Specifies a part of MediaQueryData to depend on.
MediaQuery contains a large number of related properties. Widgets frequently depend
on only a few of these attributes. For example, a widget that needs to rebuild when the
MediaQueryData::text_scaler changes does not need to be notified when the
MediaQueryData::size changes. Specifying an aspect avoids unnecessary rebuilds.
Dart’s private _MediaQueryAspect; public here because it is the InheritedModel
aspect type of MediaQuery.
Variants§
Size
Specifies the aspect corresponding to MediaQueryData::size.
Width
Specifies the aspect corresponding to the width of MediaQueryData::size.
Height
Specifies the aspect corresponding to the height of MediaQueryData::size.
Orientation
Specifies the aspect corresponding to MediaQueryData::orientation.
DevicePixelRatio
Specifies the aspect corresponding to MediaQueryData::device_pixel_ratio.
TextScaler
Specifies the aspect corresponding to MediaQueryData::text_scaler.
PlatformBrightness
Specifies the aspect corresponding to MediaQueryData::platform_brightness.
Padding
Specifies the aspect corresponding to MediaQueryData::padding.
ViewInsets
Specifies the aspect corresponding to MediaQueryData::view_insets.
SystemGestureInsets
Specifies the aspect corresponding to MediaQueryData::system_gesture_insets.
ViewPadding
Specifies the aspect corresponding to MediaQueryData::view_padding.
AlwaysUse24HourFormat
Specifies the aspect corresponding to MediaQueryData::always_use_24_hour_format.
Specifies the aspect corresponding to MediaQueryData::accessible_navigation.
InvertColors
Specifies the aspect corresponding to MediaQueryData::invert_colors.
HighContrast
Specifies the aspect corresponding to MediaQueryData::high_contrast.
OnOffSwitchLabels
Specifies the aspect corresponding to MediaQueryData::on_off_switch_labels.
DisableAnimations
Specifies the aspect corresponding to MediaQueryData::disable_animations.
ReduceMotion
Specifies the aspect corresponding to MediaQueryData::reduce_motion.
BoldText
Specifies the aspect corresponding to MediaQueryData::bold_text.
SupportsAnnounce
Specifies the aspect corresponding to MediaQueryData::supports_announce.
Specifies the aspect corresponding to MediaQueryData::navigation_mode.
GestureSettings
Specifies the aspect corresponding to MediaQueryData::gesture_settings.
SupportsShowingSystemContextMenu
Specifies the aspect corresponding to
MediaQueryData::supports_showing_system_context_menu.
LineHeightScaleFactorOverride
Specifies the aspect corresponding to
MediaQueryData::line_height_scale_factor_override.
LetterSpacingOverride
Specifies the aspect corresponding to MediaQueryData::letter_spacing_override.
WordSpacingOverride
Specifies the aspect corresponding to MediaQueryData::word_spacing_override.
ParagraphSpacingOverride
Specifies the aspect corresponding to MediaQueryData::paragraph_spacing_override.
DisplayCornerRadii
Specifies the aspect corresponding to MediaQueryData::display_corner_radii.
CaptionStyle
Specifies the aspect corresponding to MediaQueryData::caption_style.
TitleBarArea
Specifies the aspect corresponding to MediaQueryData::title_bar_area.
Trait Implementations§
Source§impl Clone for MediaQueryAspect
impl Clone for MediaQueryAspect
impl Copy for MediaQueryAspect
Source§impl Debug for MediaQueryAspect
impl Debug for MediaQueryAspect
impl Eq for MediaQueryAspect
Source§impl Hash for MediaQueryAspect
impl Hash for MediaQueryAspect
Source§impl PartialEq for MediaQueryAspect
impl PartialEq for MediaQueryAspect
impl StructuralPartialEq for MediaQueryAspect
Auto Trait Implementations§
impl Forget for MediaQueryAspect
impl Freeze for MediaQueryAspect
impl Move for MediaQueryAspect
impl RefUnwindSafe for MediaQueryAspect
impl Send for MediaQueryAspect
impl Sync for MediaQueryAspect
impl Unpin for MediaQueryAspect
impl UnsafeUnpin for MediaQueryAspect
impl UnwindSafe for MediaQueryAspect
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.