call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FCalendarStyle(...));

Implementation

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