validateAsset

suspend fun validateAsset(asset: Asset): Result<Asset>

Validate an Asset definition.

This method takes an Asset created by Flutter and validates it on the KMP side. Returns the same Asset if valid, allowing Flutter to verify bidirectional binding.

Return

Result containing the validated Asset or an error if invalid

Parameters

asset

The Asset definition to validate