Can I change the default displayed value for Infolist entries?
I am creating an Infolist for a model that has a
datetime
value called trial_ends_at
which can be nullable.
Currently, when the value in the property is equal to null
, nothing appears under the "Trial ends at" in my infolist. This is normally what I'd want, but for this field specifically, my client wants an easier way to see that there is a null
value here at a glance.
Is there some way to tell the TextEntry
to print a "-"
to the Infolist when there is no value for the trial_ends_at
property?
I tried using the formatStateUsing
method, but that only gets fired when there is state to be displayed. Since the value of the field is null
, nothing gets formatted.2 Replies