getLight method

Future getLight(
  1. dynamic id
)

Implementation

Future getLight( id ) async{
  final data = library['lights']?[ id ];

  if ( data != null ) {
    return await getBuild( data, buildLight );
  }

  console.warning( 'ColladaLoader: Couldn\'t find light with ID: $id');

  return null;
}