getString static method

String getString(
  1. BuildContext context,
  2. Object obj
)

Return the resolved text if obj is a Message instance, otherwise the result of toString is returned.

Implementation

static String getString(BuildContext context, Object obj) =>
    obj is Message ? obj.resolve(context) : obj.toString();