PropertyAccessor<T> typedef

PropertyAccessor<T> = dynamic Function(T object)

A function type for accessing properties of objects of type T.

Defines a function signature for accessing properties of objects of type T. The function takes an object of type T and returns a dynamic value representing the accessed property.

The PropertyAccessor<T> type is typically used with the property function to create property accessors.

Example:

typedef PropertyAccessor<T> = dynamic Function(T object);

var accessor = property<MyClass>('propertyName');
var myObject = MyClass(propertyName: 'value');
var propertyValue = accessor(myObject); // Returns 'value'

Implementation

typedef PropertyAccessor<T> = dynamic Function(T object);