title: Is it good Flutter practice to add a method to for rendering a widget with the data from that class?
body: <p>I am using class instances to hold data , within the widget tree I provide a function to render the data to a widget. Rather then calling the function within the widget tree would it be better to make this function a method within the given class?</p>