Skip to content

[Flutter] ApiExceptionのパターンマッチのリファクタリング #20

@LeoAndo

Description

@LeoAndo

rrousselGit/freezed#464 (comment)
上記の通り、freezedは継承が使えないかつ、今後もその予定がないため flutter SDK側でシールドクラスが利用可能になったら、
enumのApiExceptionTypeを削除し、ApiExceptionをsealedにしてパターンマッチングできるようにする。

LeoAndo/development-conference-memo#253 (comment)

Metadata

Metadata

Assignees

Labels

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions