build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Build the widget.

Implementation

@override
Widget build(BuildContext context) => PerformableActionsListTile(
  actions: [
    PerformableAction(
      name: 'Copy value',
      activator: copyShortcut,
      invoke: subtitle.copyToClipboard,
    ),
    PerformableAction(
      name: 'Copy title',
      activator: copyOtherShortcut,
      invoke: title.copyToClipboard,
    ),
  ],
  autofocus: autofocus,
  title: Text(title),
  subtitle: Text(subtitle),
  onTap: () => '$title: $subtitle'.copyToClipboard(),
  onLongPress: onLongPress,
);