pub struct TextThemeApply<'a> { /* private fields */ }Expand description
Dart TextTheme.apply named optionals.
Implementations§
Source§impl<'a> TextThemeApply<'a>
impl<'a> TextThemeApply<'a>
Sourcepub fn font_family(self, font_family: impl Into<String>) -> TextThemeApply<'a>
pub fn font_family(self, font_family: impl Into<String>) -> TextThemeApply<'a>
Dart apply(fontFamily:).
Sourcepub fn font_family_fallback(
self,
font_family_fallback: Vec<String>,
) -> TextThemeApply<'a>
pub fn font_family_fallback( self, font_family_fallback: Vec<String>, ) -> TextThemeApply<'a>
Dart apply(fontFamilyFallback:).
Sourcepub fn package(self, package: impl Into<String>) -> TextThemeApply<'a>
pub fn package(self, package: impl Into<String>) -> TextThemeApply<'a>
Dart apply(package:).
Sourcepub fn font_size_factor(self, font_size_factor: f64) -> TextThemeApply<'a>
pub fn font_size_factor(self, font_size_factor: f64) -> TextThemeApply<'a>
Dart apply(fontSizeFactor:).
Sourcepub fn font_size_delta(self, font_size_delta: f64) -> TextThemeApply<'a>
pub fn font_size_delta(self, font_size_delta: f64) -> TextThemeApply<'a>
Dart apply(fontSizeDelta:).
Sourcepub fn letter_spacing_factor(
self,
letter_spacing_factor: f64,
) -> TextThemeApply<'a>
pub fn letter_spacing_factor( self, letter_spacing_factor: f64, ) -> TextThemeApply<'a>
Dart apply(letterSpacingFactor:).
Sourcepub fn letter_spacing_delta(
self,
letter_spacing_delta: f64,
) -> TextThemeApply<'a>
pub fn letter_spacing_delta( self, letter_spacing_delta: f64, ) -> TextThemeApply<'a>
Dart apply(letterSpacingDelta:).
Sourcepub fn word_spacing_factor(self, word_spacing_factor: f64) -> TextThemeApply<'a>
pub fn word_spacing_factor(self, word_spacing_factor: f64) -> TextThemeApply<'a>
Dart apply(wordSpacingFactor:).
Sourcepub fn word_spacing_delta(self, word_spacing_delta: f64) -> TextThemeApply<'a>
pub fn word_spacing_delta(self, word_spacing_delta: f64) -> TextThemeApply<'a>
Dart apply(wordSpacingDelta:).
Sourcepub fn height_factor(self, height_factor: f64) -> TextThemeApply<'a>
pub fn height_factor(self, height_factor: f64) -> TextThemeApply<'a>
Dart apply(heightFactor:).
Sourcepub fn height_delta(self, height_delta: f64) -> TextThemeApply<'a>
pub fn height_delta(self, height_delta: f64) -> TextThemeApply<'a>
Dart apply(heightDelta:).
Sourcepub fn display_color(self, display_color: Color) -> TextThemeApply<'a>
pub fn display_color(self, display_color: Color) -> TextThemeApply<'a>
Dart apply(displayColor:).
Sourcepub fn body_color(self, body_color: Color) -> TextThemeApply<'a>
pub fn body_color(self, body_color: Color) -> TextThemeApply<'a>
Dart apply(bodyColor:).
Sourcepub fn decoration(self, decoration: TextDecoration) -> TextThemeApply<'a>
pub fn decoration(self, decoration: TextDecoration) -> TextThemeApply<'a>
Dart apply(decoration:).
Sourcepub fn decoration_color(self, decoration_color: Color) -> TextThemeApply<'a>
pub fn decoration_color(self, decoration_color: Color) -> TextThemeApply<'a>
Dart apply(decorationColor:).
Sourcepub fn decoration_style(
self,
decoration_style: TextDecorationStyle,
) -> TextThemeApply<'a>
pub fn decoration_style( self, decoration_style: TextDecorationStyle, ) -> TextThemeApply<'a>
Dart apply(decorationStyle:).
Sourcepub fn font_features(
self,
font_features: Vec<FontFeature>,
) -> TextThemeApply<'a>
pub fn font_features( self, font_features: Vec<FontFeature>, ) -> TextThemeApply<'a>
Dart apply(fontFeatures:).
Sourcepub fn font_variations(
self,
font_variations: Vec<FontVariation>,
) -> TextThemeApply<'a>
pub fn font_variations( self, font_variations: Vec<FontVariation>, ) -> TextThemeApply<'a>
Dart apply(fontVariations:).
Sourcepub fn into_text_theme(self) -> TextTheme
pub fn into_text_theme(self) -> TextTheme
The text theme with every style applied.
Trait Implementations§
Source§impl From<TextThemeApply<'_>> for TextTheme
impl From<TextThemeApply<'_>> for TextTheme
Source§fn from(apply: TextThemeApply<'_>) -> TextTheme
fn from(apply: TextThemeApply<'_>) -> TextTheme
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TextThemeApply<'a>
impl<'a> !Send for TextThemeApply<'a>
impl<'a> !Sync for TextThemeApply<'a>
impl<'a> !UnwindSafe for TextThemeApply<'a>
impl<'a> Forget for TextThemeApply<'a>
impl<'a> Freeze for TextThemeApply<'a>where
&'a TextTheme: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<FontFeature>: Freeze,
PhantomData<FontVariation>: Freeze,
impl<'a> Move for TextThemeApply<'a>
impl<'a> Unpin for TextThemeApply<'a>
impl<'a> UnsafeUnpin for TextThemeApply<'a>where
&'a TextTheme: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<FontFeature>: UnsafeUnpin,
PhantomData<FontVariation>: UnsafeUnpin,
Blanket Implementations§
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
Mutably borrows from an owned value. Read more