Custom constructor

const Custom({
  1. dynamic fn,
  2. String? msg,
})

Implementation

const Custom({this.fn, this.msg});