Typeface class

Typeface

Typography implementation of PresetValue.

Typeface(
  alt: Typography.blackRedmond,
  normal: Typography.blackRedmond,
  primary: Typography.blackRedmond,
  secondary: Typography.blackRedmond,
  ascent: Typography.blackRedmond,
  success: Typography.blackRedmond,
  error: Typography.blackRedmond,
  warning: Typography.blackRedmond,
);
Inheritance

Constructors

Typeface({required TextTheme background, required TextTheme foreground, required TextTheme primary, required TextTheme secondary, required TextTheme ascent, TextTheme? onPrimary, TextTheme? onSecondary, TextTheme? onAscent, required TextTheme success, required TextTheme error, required TextTheme warning})
const
Typeface.fromJson(Map<String, dynamic> data)
Retrieve Typeface instance form data. If data is not valid, Typeface.redmond is returned.
factory
Typeface.of(BuildContext context)
Retrieve Typeface instance form context. If context has no instance of Typeface in it, Typeface.redmond is returned.
factory
Typeface.parse(String source)
Retrieve Typeface instance form source. If source is not valid, Typeface.redmond is returned.
factory

Properties

ascent TextTheme
final
background TextTheme
final
descent TextTheme
no setter
error TextTheme
final
foreground TextTheme
final
hashCode int
The hash code for this object.
no setterinherited
hint TextTheme
no setter
onAscent TextTheme
no setter
onDescent TextTheme
no setter
onError TextTheme
no setter
onHint TextTheme
no setter
onPrimal TextTheme
no setter
onPrimary TextTheme
no setter
onSecondary TextTheme
no setter
onSubtle TextTheme
no setter
onSuccess TextTheme
no setter
onWarning TextTheme
no setter
primal TextTheme
no setter
primary TextTheme
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary TextTheme
final
subtle TextTheme
no setter
success TextTheme
final
type Object
The extension's type.
no setterinherited
warning TextTheme
final

Methods

apply({Chrome? chrome, TextStyle? background, TextStyle? foreground, TextStyle? primary, TextStyle? secondary, TextStyle? ascent, TextStyle? onPrimary, TextStyle? onSecondary, TextStyle? onAscent, TextStyle? success, TextStyle? error, TextStyle? warning, TextStyle? all}) Typeface
copyWith({Chrome? palette, TextTheme? background, TextTheme? foreground, TextTheme? primary, TextTheme? secondary, TextTheme? ascent, TextTheme? onPrimary, TextTheme? onSecondary, TextTheme? onAscent, TextTheme? success, TextTheme? error, TextTheme? warning, TextTheme? parent, TextTheme? child}) Typeface
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<Typeface>? other, double t) Typeface
Linearly interpolate with another ThemeExtension object.
override
merge(Typeface? other) Typeface
merge other into this preset. Works as copyWith with all it's entry arguments assigned to other's corresponding fields.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert this preset value to its encodable hashmap of String to it's encodable data. Override this method to declare how this field can be converted to it's encodable version.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

cupertino → const Typeface
helsinki → const Typeface
mountainView → const Typeface
redmond → const Typeface
redwoodCity → const Typeface