pub struct TextStyleApply { /* private fields */ }Expand description
Dart TextStyle.apply named optionals.
Implementations§
Source§impl TextStyleApply
impl TextStyleApply
pub fn color(self, color: Color) -> TextStyleApply
pub fn background_color(self, background_color: Color) -> TextStyleApply
pub fn decoration(self, decoration: TextDecoration) -> TextStyleApply
pub fn decoration_color(self, decoration_color: Color) -> TextStyleApply
pub fn decoration_style( self, decoration_style: TextDecorationStyle, ) -> TextStyleApply
pub fn decoration_thickness_factor( self, decoration_thickness_factor: f64, ) -> TextStyleApply
pub fn decoration_thickness_delta( self, decoration_thickness_delta: f64, ) -> TextStyleApply
pub fn font_family(self, font_family: impl Into<String>) -> TextStyleApply
pub fn font_family_fallback( self, font_family_fallback: Vec<String>, ) -> TextStyleApply
pub fn font_size_factor(self, font_size_factor: f64) -> TextStyleApply
pub fn font_size_delta(self, font_size_delta: f64) -> TextStyleApply
pub fn font_weight_delta(self, font_weight_delta: i32) -> TextStyleApply
pub fn font_style(self, font_style: FontStyle) -> TextStyleApply
pub fn letter_spacing_factor(self, letter_spacing_factor: f64) -> TextStyleApply
pub fn letter_spacing_delta(self, letter_spacing_delta: f64) -> TextStyleApply
pub fn word_spacing_factor(self, word_spacing_factor: f64) -> TextStyleApply
pub fn word_spacing_delta(self, word_spacing_delta: f64) -> TextStyleApply
pub fn height_factor(self, height_factor: f64) -> TextStyleApply
pub fn height_delta(self, height_delta: f64) -> TextStyleApply
pub fn text_baseline(self, text_baseline: TextBaseline) -> TextStyleApply
pub fn leading_distribution( self, leading_distribution: TextLeadingDistribution, ) -> TextStyleApply
pub fn shadows(self, shadows: Vec<Shadow>) -> TextStyleApply
pub fn font_features(self, font_features: Vec<FontFeature>) -> TextStyleApply
pub fn font_variations( self, font_variations: Vec<FontVariation>, ) -> TextStyleApply
pub fn package(self, package: impl Into<String>) -> TextStyleApply
pub fn overflow(self, overflow: TextOverflow) -> TextStyleApply
Sourcepub fn into_style(self) -> TextStyle
pub fn into_style(self) -> TextStyle
Dart apply returns a TextStyle.
Trait Implementations§
Source§impl From<TextStyleApply> for TextStyle
impl From<TextStyleApply> for TextStyle
Source§fn from(apply: TextStyleApply) -> TextStyle
fn from(apply: TextStyleApply) -> TextStyle
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TextStyleApply
impl !Send for TextStyleApply
impl !Sync for TextStyleApply
impl !UnwindSafe for TextStyleApply
impl Forget for TextStyleApply
impl Freeze for TextStyleApplywhere
&'static dyn ColorExtension: Freeze,
*const RcInner<dyn ColorExtension> is !null: Freeze,
PhantomData<RcInner<dyn ColorExtension>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const RcInner<Paint> is !null: Freeze,
PhantomData<RcInner<Paint>>: Freeze,
PhantomData<Shadow>: Freeze,
PhantomData<FontFeature>: Freeze,
PhantomData<FontVariation>: Freeze,
impl Move for TextStyleApply
impl Unpin for TextStyleApply
impl UnsafeUnpin for TextStyleApplywhere
&'static dyn ColorExtension: UnsafeUnpin,
*const RcInner<dyn ColorExtension> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ColorExtension>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const RcInner<Paint> is !null: UnsafeUnpin,
PhantomData<RcInner<Paint>>: UnsafeUnpin,
PhantomData<Shadow>: 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