fFalse: 'inactive',
    ));

    properties.add(DiagnosticsProperty&lt;bool&gt;('keepAlive', keepAlive));

    // FlagProperty could have also been used in this case.
    // This option results in the text "obscureText: true" instead
    // of "obscureText" which is a bit more verbose but a bit clearer.
    properties.add(DiagnosticsProperty&lt;bool&gt;('obscureText', obscureText, defaultValue: false));

    properties.add(EnumProperty&lt;TextAlign&gt;('textAlign', textAlign, defaultValue: null));
    prope