build method

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

Build the widget.

Implementation

@override
Widget build(final 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(
              (final e) => ListTile(
                title: Text(e),
                onTap: e.copyToClipboard,
              ),
            ),
    ],
  );
}