Sp3dMaterial class

(en) Flutter implementation of Sp3dMaterial. Sp3dMaterial is a class used in Sp3dObj that handles information such as colors.

(ja) Sp3dMaterialのflutter実装です。 Sp3dMaterialはSp3dObj内で使用される、色などの情報を扱うクラスです。

Author Masahide Mori

First edition creation date 2021-06-30 23:30:52

Constructors

Sp3dMaterial(Color bg, bool isFill, double strokeWidth, Color strokeColor, {int? imageIndex, List<Offset>? textureCoordinates, String? name, Map<String, dynamic>? option})
Constructor

Properties

bg Color
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
imageIndex int?
getter/setter pair
isFill bool
getter/setter pair
name String?
getter/setter pair
option Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strokeColor Color
getter/setter pair
strokeWidth double
getter/setter pair
textureCoordinates List<Offset>?
getter/setter pair

Methods

copyWith({Color? bg, bool? isFill, double? strokeWidth, Color? strokeColor, int? imageIndex, List<Offset>? textureCoordinates, String? name, Map<String, dynamic>? option}) Sp3dMaterial
Creates a copy with only the specified values rewritten.
deepCopy() Sp3dMaterial
Deep copy the object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDict() Map<String, dynamic>
Convert the object to a dictionary.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromDict(Map<String, dynamic> src) Sp3dMaterial
Restore this object from the dictionary.

Constants

className → const String
version → const String