Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

Which one is performance wise better Text or extracted TextWidget function

TextWidget function is more useful than multiple texts. 
It's absolutely a good practice and if any changes need you can able to change centrally and it's time-saving with clean code. 
You do not get the execution speed issue. And more important things, in both widget and function you just call a single Text widget. 
That's why there is no performance issue. You go for the second one for good practice.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Which #performance #wise #Text #extracted #TextWidget #function
ADD COMMENT
Topic
Name
4+5 =