Greeting constructor

const Greeting(
  1. String name, {
  2. Key? key,
  3. String greeting = "Hello",
})

Creates a greeting for name.

Implementation

const Greeting(this.name, {super.key, this.greeting = "Hello"});