Dart 编写Api弃用警告

2021-01-15 21:14

阅读:540

标签:version   ext1   style   警告   term   body   code   tst   after   

例如body2在以后的版本将被bodyText1代替

  @Deprecated(
    'This is the term used in the 2014 version of material design. The modern term is bodyText1. '
    'This feature was deprecated after v1.13.8.'
  )
  TextStyle get body2 => bodyText1;

用户使用body2将收到以下错误

'body2' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is bodyText1. This feature was deprecated after v1.13.8..
Try replacing the use of the deprecated member with the replacement.

Dart 编写Api弃用警告

标签:version   ext1   style   警告   term   body   code   tst   after   

原文地址:https://www.cnblogs.com/ajanuw/p/12233024.html


评论


亲,登录后才可以留言!