keywords in Dart are reserved words that are defined by language and have a special meaning defined by the compiler.
They can not be used as variables and method names.
The following are keywords.
- Abstract modifier
- assert
- as
- async and await
- break
- case
- const
- final
- new
- with
- get
- set
- library
- package
- required
- return
- patch
- export
- finally
- on
- interface
- where
- yield
- const
- external
- is
- var
- implements
interface keyword
Interface is one of the important concepts of OOP concepts.
It defines an abstract way of doing and a blueprint for the class of objects.
You can define implicit and explicit interfaces.
class Animal{
// Allows methods with body
// does not allow method declaration
}
class Lio implements Animal{
//Provide the implementation for all methods in the interface
}