call method

  1. @useResult
FAvatarStyle call(
  1. Object? _
)
inherited

Returns itself.

Allows FAvatarStyle to replace functions that accept and return a FAvatarStyle, such as a style's copyWith(...) function.

Example

Given:

void copyWith(FAvatarStyle Function(FAvatarStyle) nestedStyle) {}

The following:

copyWith((style) => FAvatarStyle(...));

Can be replaced with:

copyWith(FAvatarStyle(...));

Implementation

@useResult
FAvatarStyle call(Object? _) => this as FAvatarStyle;