Skip to content

Price should be double instead of num #81

Description

@ciriousjoker

Why would you use num in Dart? I haven't encountered a case where using num made practical sense, but it especially doesn't make sense when the thing you have is already a floating point number, aka a double.

By returning num, when using the price you have to convert it back to a double even though it already is one.

CleanShot 2023-12-05 at 19 17 19@2x

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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