addTextWidgetTest static method
非product的版本,则显示。switchButton 默认 valueKey的后缀是value = false -1; value = true 0,
Implementation
static Widget addTextWidgetTest({bool? value, ValueKey<String>? valueKey}) {
return !inProduction
? Container(
width: 60,
color: Colors.white,
alignment: Alignment.centerLeft,
child: Text(
'${valueKey?.value}${(value ?? false) ? '0' : '-1'}',
style: TextStyle(color: Color(0xff222222), fontSize: 10),
),
)
: Container();
}