compositingReasons method
Provides the reasons why the given layer was composited.
layerId
The id of the layer for which we want to get the reasons it was composited.
Implementation
Future<CompositingReasonsResult> compositingReasons(LayerId layerId) async {
var result = await _client.send('LayerTree.compositingReasons', {
'layerId': layerId,
});
return CompositingReasonsResult.fromJson(result);
}