Skip to content

Improve Dart API - use named parameters instead of XXXParameters objects #35

@Chralu

Description

@Chralu

Describe the problem you discovered

I think the action parameters are heavy to use.

For example, I suggest doing :

final getBlockNumberReturnType = await wagmi.Core.getBlockNumber(
  chainId: account!.chain!.id,
  cacheTime: 4000,
);

instead of :

final getBlockNumberReturnType = await wagmi.Core.getBlockNumber(
  wagmi.GetBlockNumberParameters(
    chainId: account!.chain!.id,
    cacheTime: 4000,
  ),
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    qualityImprove code quality

    Type

    No type
    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