Skip to content

Ignore unnecessary_string_interpolations in messages_XX.dart files #73

@bambinoua

Description

@bambinoua

I have this code in translation file

static String m1(isNew, table, message) => "${Intl.select(isNew, {
            'true':
                'Could not insert record into \'${table}\' table. ${message}',
            'false':
                'Could not update record into \'${table}\' table. ${message}',
          })}";

And my analysis_options.yaml contains this unnecessary_string_interpolations: true. So I have a warnig about unnecessary string interpolation. Is it possible to ignore this in messages files or remove redundant string interpolation from Intl.select

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions