Skip to content

Restrict using built_value in unsupported ways

Compare
Choose a tag to compare
@davidmorgan davidmorgan released this 25 Jan 10:03
· 664 commits to master since this release
d1be9bd

This release makes built_value actively block use in three unsupported ways. If you do need any of these to work, please file an issue and we'll look into it.

  • Use of extends is prohibited; use implements or extends Object with instead.
  • Importing package:built_value/built_value.dart with show or as is prohibited; this hides symbols from the generated code.
  • Use of SDK collections in fields is prohibited; they are mutable and break the built_value guarantees.

Any problems please file an issue here: https://github.com/google/built_value.dart/issues