headerImage function Null safety
- String assetName
Implementation
HeaderBuilder headerImage(String assetName) {
return (context, constraints, _) {
return Padding(
padding: const EdgeInsets.all(20),
child: Image.asset(assetName),
);
};
}