SmartSceneMetadata constructor

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

Creates a SmartSceneMetadata object.

Implementation

SmartSceneMetadata({
  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;