Skip to content

'BoxShadowListMixRef' can't be assigned to the parameter type 'List<BoxShadowMix>' #925

Description

@lvsecoto

Package version

No response

Flutter version

final token = BoxShadowToken('effect');
BoxStyler().boxShadows(token.mix());

Then we found that an error.

The argument type 'BoxShadowListMixRef' can't be assigned to the parameter type 'List<BoxShadowMix>'. dart[argument_type_not_assignable](https://dart.dev/diagnostics/argument_type_not_assignable)

Steps to reproduce

final token = BoxShadowToken('effect');
BoxStyler().boxShadows(token.mix());

Expected results

Could be ok.

Actual results

Then we found that an error.

The argument type 'BoxShadowListMixRef' can't be assigned to the parameter type 'List<BoxShadowMix>'. dart[argument_type_not_assignable](https://dart.dev/diagnostics/argument_type_not_assignable)

Code sample

Code sample
final token = BoxShadowToken('effect');
BoxStyler().boxShadows(token.mix());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions