refactor: remove covariant keyword from createInstance args
This commit is contained in:
@@ -132,7 +132,7 @@ class FFIAsset extends ThermionAsset {
|
|||||||
///
|
///
|
||||||
@override
|
@override
|
||||||
Future<FFIAsset> createInstance(
|
Future<FFIAsset> createInstance(
|
||||||
{covariant List<MaterialInstance>? materialInstances = null}) async {
|
{List<MaterialInstance>? materialInstances = null}) async {
|
||||||
if(isInstance) {
|
if(isInstance) {
|
||||||
return instanceOwner!.createInstance(materialInstances: materialInstances);
|
return instanceOwner!.createInstance(materialInstances: materialInstances);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ abstract class ThermionAsset {
|
|||||||
/// call [Scene.add].
|
/// call [Scene.add].
|
||||||
///
|
///
|
||||||
Future<ThermionAsset> createInstance(
|
Future<ThermionAsset> createInstance(
|
||||||
{covariant List<MaterialInstance>? materialInstances = null});
|
{List<MaterialInstance>? materialInstances = null});
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Returns the number of instances associated with this asset.
|
/// Returns the number of instances associated with this asset.
|
||||||
|
|||||||
Reference in New Issue
Block a user