To call a function of a parent, you can use the callback pattern . In this example, a function on the color selected is passed to the child. The child calls the function when a button is pressed: import ‘package:flutter/material.
To call a function of a parent, you can use the callback pattern . In this example, a function on the color selected is passed to the child. The child calls the function when a button is pressed: import ‘package:flutter/material.