getString static method
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();