Dart : Class Modifiers

Dart : Class Modifiers

·

1 min read

Class Modifiers

  • Class modifiers control how a class or mixin can be used, both from within its own library, and from outside the library where it's defined.

  • Modifier keywords come before a class or mixin declaration.

  1. abstract

  2. base

  3. final

  4. interface

  5. sealed

  6. mixin

  • Only the base modifier can appear before a mixin declaration.