createBlankInstance

Create a new blank ViewModelInstance. Use Artboard::setViewModel to apply it. The instance name will be an empty string.

Property values will be defaulted:

  • Numbers will be 0

  • Strings will be empty

  • Booleans will be false

  • Colors will be ARGB(0xFF, 0, 0, 0)

  • Enums will be their first value

Useful when you want to supply all property values yourself.

Return

A new instance of the ViewModel with initial values defaulted.

Throws

If a blank instance cannot be created.