TextAction({String? title, Widget? child, this.onTap}) : assert(child != null || title != null), child = child ?? title!.text();