call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FSheetStyle(...));

Implementation

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