cholojuanito / credit_card_type_detector

A Dart package that detects credit card types based on their prefixes
MIT License
24 stars 15 forks source link

[Suggestion] change type and prettyType to name and prettyName #17

Open cedvdb opened 8 months ago

cedvdb commented 8 months ago

The reason is things like this are hard to understand:

creditCard.type.type

Would be more readable with

creditCard.type.name
cholojuanito commented 2 months ago

I'll definitely consider that. I haven't done much with this repo in a few months. I suppose this would make for a breaking change though.