首页 > Windows开发 > 详细

Dart 编写Api弃用警告

时间:2020-01-25 14:48:32      阅读:210      评论:0      收藏:0      [点我收藏+]

例如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弃用警告

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!