close property Null safety

Widget close

Implementation

Widget get close {
  return MaterialButton(
    shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(100)),
    splashColor: Colors.transparent,
    hoverColor: Colors.transparent,
    minWidth: 45,
    height: 45,
    child: Container(
      padding: EdgeInsets.all(20),
      child: Icon(Icons.close, color: Colors.white70, size: 26),
    ),
    padding: EdgeInsets.all(0),
    onPressed: Navigator.of(options.context).pop,
  );
}