假设我有这段代码:
void test(){ assert(() { print("This is Test"); }); }
根据这个问题assert,dart 将在生产版本中删除
assert
test()但是被调用的函数怎么样?
test()
这个功能会在构建时被删除吗?
或者如果我多次调用空函数,这会对性能产生重大影响吗?
optimization performance dart flutter
dart ×1
flutter ×1
optimization ×1
performance ×1