FSizes.inherit constructor

FSizes.inherit({
  1. required bool touch,
})

Creates an FSizes that inherits its properties based on touch.

Implementation

factory FSizes.inherit({required bool touch}) => touch
    ? const FSizes(field: (xs: 32, sm: 40, md: 44, lg: 48), item: 44, tile: 48, calendar: 44)
    : const FSizes(field: (xs: 24, sm: 32, md: 36, lg: 40), item: 30, tile: 48, calendar: 32);