T constructor

T(
  1. String name, {
  2. required dynamic onTap(
    1. BuildContext context
    ),
})

Implementation

T(this.name, {required this.onTap});