errorWidget function
void
errorWidget()
Implementation
@pragma('vm:entry-point')
void errorWidget() {
if (!CoreGlobals.kTestMode) {
// tránh lỗi integration test
ErrorWidget.builder = (FlutterErrorDetails details) {
if (kDebugMode) return ErrorWidget(details.exception);
return Container(
alignment: Alignment.center,
color: Colors.transparent,
child: Image.asset(
coreBaseConfigs.assetsPath.errorWidget,
width: 100,
height: 100,
),
);
};
}
}