SceneMetadata constructor

SceneMetadata({
  1. required String name,
  2. required Relative image,
})

Creates a SceneMetadata object.

Implementation

SceneMetadata({
  required String name,
  required this.image,
})  : assert(name.isEmpty || Validators.isValidName(name),
          "`name` must be between 1 and 32 characters (inclusive)"),
      _originalName = name,
      _name = name;