debugInfo function

dynamic debugInfo(
  1. dynamic context,
  2. String text
)

Implementation

debugInfo(context, String text) {
  bool isDev = !bool.fromEnvironment("dart.vm.product");
  if (isDev)
    return Toast.makeText(
        context: context,
        content: text,
        animated: Toast.ANIMATED_MOVEMENT_TWEEN)
        .show();
}