mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

This is just a proof of concept. If we like this direction, it will move out of the examples directory (likely re-written) and be committed in smaller pieces with unit tests and formal reviews. TBR=abarth BUG= Review URL: https://codereview.chromium.org/971183002
28 lines
431 B
Dart
28 lines
431 B
Dart
library fn;
|
|
|
|
import 'dart:async';
|
|
import 'dart:collection';
|
|
import 'dart:sky' as sky;
|
|
import 'reflect.dart' as reflect;
|
|
|
|
part 'component.dart';
|
|
part 'node.dart';
|
|
part 'style.dart';
|
|
|
|
bool _checkedMode;
|
|
|
|
bool debugWarnings() {
|
|
void testFn(double i) {}
|
|
|
|
if (_checkedMode == null) {
|
|
_checkedMode = false;
|
|
try {
|
|
testFn('not a double');
|
|
} catch (ex) {
|
|
_checkedMode = true;
|
|
}
|
|
}
|
|
|
|
return _checkedMode;
|
|
}
|