showSnackBar method Null safety

dynamic showSnackBar(
  1. String comment
)

Implementation

showSnackBar(String comment) {
  final snackBar = SnackBar(content: Text(comment));
  ScaffoldMessenger.of(Dao.inst.globalNavigatorKey.currentContext)
      .showSnackBar(snackBar);
}