AppText constructor

const AppText({
  1. Key? key,
  2. required String text,
  3. TextStyle style = const TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
})

Implementation

const AppText({
  super.key,
  required this.text,
  this.style = const TextStyle(
    fontSize: 18,
    fontWeight: FontWeight.bold,
  ),
});