Skip to main content

TextStyleApply

Struct TextStyleApply 

Source
pub struct TextStyleApply { /* private fields */ }
Expand description

Dart TextStyle.apply named optionals.

Implementations§

Source§

impl TextStyleApply

Source

pub fn color(self, color: Color) -> TextStyleApply

Source

pub fn background_color(self, background_color: Color) -> TextStyleApply

Source

pub fn decoration(self, decoration: TextDecoration) -> TextStyleApply

Source

pub fn decoration_color(self, decoration_color: Color) -> TextStyleApply

Source

pub fn decoration_style( self, decoration_style: TextDecorationStyle, ) -> TextStyleApply

Source

pub fn decoration_thickness_factor( self, decoration_thickness_factor: f64, ) -> TextStyleApply

Source

pub fn decoration_thickness_delta( self, decoration_thickness_delta: f64, ) -> TextStyleApply

Source

pub fn font_family(self, font_family: impl Into<String>) -> TextStyleApply

Source

pub fn font_family_fallback( self, font_family_fallback: Vec<String>, ) -> TextStyleApply

Source

pub fn font_size_factor(self, font_size_factor: f64) -> TextStyleApply

Source

pub fn font_size_delta(self, font_size_delta: f64) -> TextStyleApply

Source

pub fn font_weight_delta(self, font_weight_delta: i32) -> TextStyleApply

Source

pub fn font_style(self, font_style: FontStyle) -> TextStyleApply

Source

pub fn letter_spacing_factor(self, letter_spacing_factor: f64) -> TextStyleApply

Source

pub fn letter_spacing_delta(self, letter_spacing_delta: f64) -> TextStyleApply

Source

pub fn word_spacing_factor(self, word_spacing_factor: f64) -> TextStyleApply

Source

pub fn word_spacing_delta(self, word_spacing_delta: f64) -> TextStyleApply

Source

pub fn height_factor(self, height_factor: f64) -> TextStyleApply

Source

pub fn height_delta(self, height_delta: f64) -> TextStyleApply

Source

pub fn text_baseline(self, text_baseline: TextBaseline) -> TextStyleApply

Source

pub fn leading_distribution( self, leading_distribution: TextLeadingDistribution, ) -> TextStyleApply

Source

pub fn shadows(self, shadows: Vec<Shadow>) -> TextStyleApply

Source

pub fn font_features(self, font_features: Vec<FontFeature>) -> TextStyleApply

Source

pub fn font_variations( self, font_variations: Vec<FontVariation>, ) -> TextStyleApply

Source

pub fn package(self, package: impl Into<String>) -> TextStyleApply

Source

pub fn overflow(self, overflow: TextOverflow) -> TextStyleApply

Source

pub fn into_style(self) -> TextStyle

Dart apply returns a TextStyle.

Trait Implementations§

Source§

impl From<TextStyleApply> for TextStyle

Source§

fn from(apply: TextStyleApply) -> TextStyle

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>