widget property

Widget widget

Implementation

Widget get widget {
  if(exception == null){
    return const SizedBox();
  }
  return Center(
    child: Card(child: Column(
      children: [
        Builder(
          builder: (ctx) {
            return CircleAvatar(
              backgroundColor: ctx.cardColor,
              child: const Icon(Icons.warning,color: Colors.orange,),
            );
          }
        ),
        Text(exception!.code.toString()).marginOnly(left: 12, right: 12),
        Text(exception!.msg)
      ],
    )),
  );
}