build method

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

Build the widget.

Implementation

@override
Widget build(BuildContext context) {
  final s = stackTrace;
  return ListView(
    children: [
      CopyListTile(
        autofocus: true,
        title: 'Error Description',
        subtitle: error.toString(),
      ),
      if (s != null)
        ...s
            .toString()
            .split('\n')
            .map((e) => ListTile(title: Text(e), onTap: e.copyToClipboard)),
    ],
  );
}