We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now every build a stopwatch is created in debug and release mode.
If the properties dataTableShowLogs && kDebugMode are not true, it's created and started every build.
dataTableShowLogs && kDebugMode
This is unnecessary.
Quick fix: Now
@override Widget build(BuildContext context) { var sw = Stopwatch(); sw.start(); ... sw.stop(); if (dataTableShowLogs && kDebugMode) { debugPrint('DataTable2 built: ${sw.elapsedMilliseconds}ms'); }
How it could be
Stopwatch? sw; @override Widget build(BuildContext context) { if (dataTableShowLogs && kDebugMode){ sw = Stopwatch(); sw.start(); } ... if (dataTableShowLogs && kDebugMode) { sw.stop(); debugPrint('DataTable2 built: ${sw.elapsedMilliseconds}ms'); }
The text was updated successfully, but these errors were encountered:
And also pls add a property to disable the debug completely
Sorry, something went wrong.
No branches or pull requests
Now every build a stopwatch is created in debug and release mode.
If the properties
dataTableShowLogs && kDebugMode
are not true, it's created and started every build.This is unnecessary.
How it could be
The text was updated successfully, but these errors were encountered: