sideImage function Null safety

SideBuilder sideImage(
  1. String assetName
)

Customize the side image.

Implementation

SideBuilder sideImage(String assetName) {
  return (context, constraints) {
    return Center(
      child: Padding(
        padding: EdgeInsets.all(constraints.maxWidth / 4),
        child: Image.asset(assetName),
      ),
    );
  };
}