defaultGlobalBuilder static method

Widget defaultGlobalBuilder(
  1. BuildContext context,
  2. ErrorWithStack errorInfo
)

Default global builder implementation

Implementation

static Widget defaultGlobalBuilder(
        BuildContext context, ErrorWithStack errorInfo) =>
    Center(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Padding(
            padding: const EdgeInsets.only(bottom: 8.0),
            child: Text(
              "Error",
              textAlign: TextAlign.center,
            ),
          ),
          Text(errorInfo.error.toString()),
        ],
      ),
    );