Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Avoid `print` calls in production code

void main() {
  if (kReleaseMode) {
    debugPrint = (String message, { int wrapWidth }) {} //
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Avoid #calls #production #code
ADD COMMENT
Topic
Name
2+1 =