Open qbait opened 3 years ago
Can GetX returns nullable theme and textTheme.
GetX
theme
textTheme
Is it possible to return non-nullable so when using sound null safety, I can call Get.textTheme.caption.copyWith(color: Colors.red) instead of Get.textTheme?.caption?.copyWith(color: Colors.red)
Get.textTheme.caption.copyWith(color: Colors.red)
Get.textTheme?.caption?.copyWith(color: Colors.red)
@qbait you should use when ever posible (see bellow):
context.textTheme.caption.copayWith(color: Colors.red)
Can
GetX
returns nullabletheme
andtextTheme
.Is it possible to return non-nullable so when using sound null safety, I can call
Get.textTheme.caption.copyWith(color: Colors.red)
instead ofGet.textTheme?.caption?.copyWith(color: Colors.red)