# ConditionalOnAsset class

The `ConditionalOnAsset` annotation in Jetleaf allows developers to conditionally process a class or method based on the presence of an asset.

This annotation uses `OnAssetCondition` to check whether a specified asset is available in the application's resources. If the asset exists, the annotated element is processed.

### Usage Example:

    @ConditionalOnAsset('config/app_config.json')
    class AppConfigPod {
      // This pod will only be loaded if 'config/app_config.json' exists
    }

Inheritance
  - Object
  - ReflectableAnnotation
  - ConditionalOnAsset
Mixed-in types
  - EqualsAndHashCode
Annotations
  - @Conditional([ClassType<OnAssetCondition>()])
  - @Target({TargetKind.classType, TargetKind.method})

## Constructors

ConditionalOnAsset.new(String asset)
  The `ConditionalOnAsset` annotation in Jetleaf allows developers to conditionally process a class or method based on the presence of an asset.
  const

## Properties

annotationType → Type
  Returns the annotation _type of this annotation.
  no setter override
asset → String
  The asset path that must exist for the annotated element to be processed.
  final
hashCode → int
  The hash code for this object.
  no setter inherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited

## Methods

equalizedProperties() → List<Object?>
  Mixin-style contract for value-based equality, `hashCode`, and `toString`.
  override
equals(Object other) → bool
  Checks whether the given object is logically equivalent to this annotation.
  inherited
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
toString() → String
  Returns a string representation of this annotation.
  override

## Operators

operator ==(Object other) → bool
  The equality operator.
  inherited