call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FAccordionStyle(...));

Implementation

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