Skip to main content

TextThemeApply

Struct TextThemeApply 

Source
pub struct TextThemeApply<'a> { /* private fields */ }
Expand description

Dart TextTheme.apply named optionals.

Implementations§

Source§

impl<'a> TextThemeApply<'a>

Source

pub fn font_family(self, font_family: impl Into<String>) -> TextThemeApply<'a>

Dart apply(fontFamily:).

Source

pub fn font_family_fallback( self, font_family_fallback: Vec<String>, ) -> TextThemeApply<'a>

Dart apply(fontFamilyFallback:).

Source

pub fn package(self, package: impl Into<String>) -> TextThemeApply<'a>

Dart apply(package:).

Source

pub fn font_size_factor(self, font_size_factor: f64) -> TextThemeApply<'a>

Dart apply(fontSizeFactor:).

Source

pub fn font_size_delta(self, font_size_delta: f64) -> TextThemeApply<'a>

Dart apply(fontSizeDelta:).

Source

pub fn letter_spacing_factor( self, letter_spacing_factor: f64, ) -> TextThemeApply<'a>

Dart apply(letterSpacingFactor:).

Source

pub fn letter_spacing_delta( self, letter_spacing_delta: f64, ) -> TextThemeApply<'a>

Dart apply(letterSpacingDelta:).

Source

pub fn word_spacing_factor(self, word_spacing_factor: f64) -> TextThemeApply<'a>

Dart apply(wordSpacingFactor:).

Source

pub fn word_spacing_delta(self, word_spacing_delta: f64) -> TextThemeApply<'a>

Dart apply(wordSpacingDelta:).

Source

pub fn height_factor(self, height_factor: f64) -> TextThemeApply<'a>

Dart apply(heightFactor:).

Source

pub fn height_delta(self, height_delta: f64) -> TextThemeApply<'a>

Dart apply(heightDelta:).

Source

pub fn display_color(self, display_color: Color) -> TextThemeApply<'a>

Dart apply(displayColor:).

Source

pub fn body_color(self, body_color: Color) -> TextThemeApply<'a>

Dart apply(bodyColor:).

Source

pub fn decoration(self, decoration: TextDecoration) -> TextThemeApply<'a>

Dart apply(decoration:).

Source

pub fn decoration_color(self, decoration_color: Color) -> TextThemeApply<'a>

Dart apply(decorationColor:).

Source

pub fn decoration_style( self, decoration_style: TextDecorationStyle, ) -> TextThemeApply<'a>

Dart apply(decorationStyle:).

Source

pub fn font_features( self, font_features: Vec<FontFeature>, ) -> TextThemeApply<'a>

Dart apply(fontFeatures:).

Source

pub fn font_variations( self, font_variations: Vec<FontVariation>, ) -> TextThemeApply<'a>

Dart apply(fontVariations:).

Source

pub fn into_text_theme(self) -> TextTheme

The text theme with every style applied.

Trait Implementations§

Source§

impl From<TextThemeApply<'_>> for TextTheme

Source§

fn from(apply: TextThemeApply<'_>) -> TextTheme

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>