Typography constructor

  1. @Deprecated('The default Typography constructor defaults to the 2014 material design defaults. ' 'Applications are urged to migrate to Typography.material2018(), or, if the 2014 defaults ' 'are desired, to explicitly request them using Typography.material2014(). ' 'This feature was deprecated after v1.13.8.')
Typography(
  1. {TargetPlatform platform,
  2. TextTheme black,
  3. TextTheme white,
  4. TextTheme englishLike,
  5. TextTheme dense,
  6. TextTheme tall}
)

Creates a typography instance.

This constructor is identical to Typography.material2014. It is deprecated because the 2014 material design defaults used by that constructor are obsolete. The current material design specification recommendations are those reflected by Typography.material2018.

Implementation

@Deprecated(
  'The default Typography constructor defaults to the 2014 material design defaults. '
  'Applications are urged to migrate to Typography.material2018(), or, if the 2014 defaults '
  'are desired, to explicitly request them using Typography.material2014(). '
  'This feature was deprecated after v1.13.8.'
)
factory Typography({
  TargetPlatform platform,
  TextTheme black,
  TextTheme white,
  TextTheme englishLike,
  TextTheme dense,
  TextTheme tall,
}) = Typography.material2014;