pub struct TypographyBuilder { /* private fields */ }Expand description
Dart’s Typography.material2014 and Typography.material2018 arguments; the two
factories differ only in their default geometry text themes.
Implementations§
Source§impl TypographyBuilder
impl TypographyBuilder
Sourcepub fn platform(self, platform: Option<TargetPlatform>) -> TypographyBuilder
pub fn platform(self, platform: Option<TargetPlatform>) -> TypographyBuilder
Dart platform:, which defaults to TargetPlatform::Android; None is Dart’s
explicit null, which needs both black and white.
Sourcepub fn english_like(
self,
english_like: impl Into<Rc<TextTheme>>,
) -> TypographyBuilder
pub fn english_like( self, english_like: impl Into<Rc<TextTheme>>, ) -> TypographyBuilder
Dart englishLike:.
Sourcepub fn build(self) -> Typography
pub fn build(self) -> Typography
The typography the factory returns.
Trait Implementations§
Source§impl Clone for TypographyBuilder
impl Clone for TypographyBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for TypographyBuilder
impl !Send for TypographyBuilder
impl !Sync for TypographyBuilder
impl !UnwindSafe for TypographyBuilder
impl Forget for TypographyBuilder
impl Freeze for TypographyBuilder
impl Move for TypographyBuilder
impl Unpin for TypographyBuilder
impl UnsafeUnpin for TypographyBuilderwhere
*const RcInner<TextTheme> is !null: UnsafeUnpin,
PhantomData<RcInner<TextTheme>>: 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