call method

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

Returns itself.

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

Example

Given:

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

The following:

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

Can be replaced with:

copyWith(FModalSheetStyle(...));

Implementation

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