IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY constant

CompileTimeErrorCode const IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY

Implementation

static const CompileTimeErrorCode IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY =
    CompileTimeErrorCode(
        'IF_ELEMENT_CONDITION_FROM_DEFERRED_LIBRARY',
        "Constant values from a deferred library can't be used as values in "
            "an if condition inside a const collection literal.",
        correction: "Try making the deferred import non-deferred.")