headerImage function Null safety

HeaderBuilder headerImage(
  1. String assetName
)

Implementation

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