Typography.material2018 constructor
Creates a typography instance using Material Design's 2018 defaults.
If platform
is TargetPlatform.iOS or TargetPlatform.macOS, the
default values for black
and white
are blackCupertino and
whiteCupertino respectively. Otherwise they are blackMountainView and
whiteMountainView. If platform
is null then both black
and white
must be specified.
The default values for englishLike
, dense
, and tall
are
englishLike2018, dense2018, and tall2018.
Implementation
factory Typography.material2018({
TargetPlatform? platform = TargetPlatform.android,
TextTheme? black,
TextTheme? white,
TextTheme? englishLike,
TextTheme? dense,
TextTheme? tall,
}) {
assert(platform != null || (black != null && white != null));
return Typography._withPlatform(
platform,
black, white,
englishLike ?? englishLike2018,
dense ?? dense2018,
tall ?? tall2018,
);
}