I'm trying to apply blue color on Theme.of(context).textTheme.headline6, it can be done in two ways
Text(
"Hello",
style: Theme.of(context)
.textTheme
.headline6!
.copyWith(color: Colors.blue),
),
or
Text(
"Hello",
style: Theme.of(context)
.textTheme
.headline6!
.apply(color: Colors.blue),
),
Which one you prefer cpyWith or apply method?